0% found this document useful (0 votes)
3 views

Python Qp

This document is a question paper for the B.E. II Semester in Computer Science & Engineering at Government Engineering College Bidar for the subject 'Introduction to Python Programming'. It includes two sections with various questions on topics such as arithmetic expressions, importing modules, variable naming rules, looping control statements, functions, data structures like lists and dictionaries, and specific Python methods. The paper is designed for a maximum of 25 marks and has a duration of 1 hour.

Uploaded by

Renuka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python Qp

This document is a question paper for the B.E. II Semester in Computer Science & Engineering at Government Engineering College Bidar for the subject 'Introduction to Python Programming'. It includes two sections with various questions on topics such as arithmetic expressions, importing modules, variable naming rules, looping control statements, functions, data structures like lists and dictionaries, and specific Python methods. The paper is designed for a maximum of 25 marks and has a duration of 1 hour.

Uploaded by

Renuka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GOVERNMENT OF KARNATAKA

DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION


GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. II Semester, 2023-24
Department Of Computer Science & Engineering
______________________________________________________________________________
Subject with Code: Introduction to Python Programming (22BPLCK205) Max. Marks: 25
Date: 14-05-2024 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch:CSE

Note : Solve only one complete question from each section.

Section -A
Q.No Questions M L CO
.
1.A What is an arithmetic expression? What is the output of this 4 L1 CO1
statement? ‘hello world’ + 100 + ’how are you’ explain the reason
if the statement produces an error
1.B Discuss various methods of importing modules in Python 5 L1 CO1
programs. Which method is best? Explain.
1.C What are the rules for naming variables. 4 L1 CO1
OR
2.A Explain looping control statements in Python with a syntax 4 L1 CO1
and example to each.
2.B 1. What are functions? Explain Python function with parameters 5 L1 CO1
and return statements
2.C Mention FOUR scope rules of variables in Python. 4 L1 CO1
Section -B
3.A Discuss list and dictionary data structure with example 7 L1 CO2
for each.
3.B Differentiate between list and dictionary 5 L1 CO2
OR
4.A Explain negative indexing, 6 L1 CO2
slicing.index(),append(),remove(),pop(),insert() & sort().
4.B 2. Explain with a programming example to each: (i) get() (ii) 6 L1 CO2
setdefault()
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. (CSE)IISemester, 2023-24

SECTION-A
1.A.What is an arithmetic expression? What is the output of this statement? ‘hello world’ + 100 + ’how are you’
explain the reason if the statement produces an error.(4M)
1.B.Discuss various methods of importing modules in Python programs. Which method is best? Explain.(5M)
1.C. What are the rules for naming variables.(4M)
OR
2.A.Explain looping control statements in Python with a syntax and example to each.(4M)
2.B.What are functions? Explain Python function with parameters and return statements.(5M)
2.C. Mention FOUR scope rules of variables in Python.(4M)
SECTION –B
3.A.Discuss list and dictionary data structure with example for each.(7M)
3.B.Differentiate between list and dictionary.(5M)
OR
4.A.Explain negative indexing, slicing.index(),append(),remove(),pop(),insert() & sort().(6M)
4.B. Explain with a programming example to each: (i) get() (ii) setdefault().(6M)

You might also like