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

qps

The document contains multiple CIE question papers for various engineering subjects, including Principles of Programming using C and Introduction to Python Programming, for the academic years 2022-23 and 2023-24. Each paper consists of sections with questions requiring explanations, evaluations, and comparisons of programming concepts and structures. The questions cover topics such as data types, control statements, functions, and array operations.

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

qps

The document contains multiple CIE question papers for various engineering subjects, including Principles of Programming using C and Introduction to Python Programming, for the academic years 2022-23 and 2023-24. Each paper consists of sections with questions requiring explanations, evaluations, and comparisons of programming concepts and structures. The questions cover topics such as data types, control statements, functions, and array operations.

Uploaded by

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

GOVERNMENT OF KARNATAKA

DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION


GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. I Semester, 2022-23

Subject with Code: Principles of Programming using C (22POP13) Max. Marks: 20


Date: 20-01-2023 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch:CSE

Note : Solve only one complete question from each section.

Section -A
Q.No.1.a.List all the generations and Explain any one generation of computer.(5)

b.Explain working of CRT display(5)

OR

Q.No2.a.Evaluate Expressions (4)


i. a = 10, b = 10, c = 1, d = 5, r;
r = ++a + (++b) + b-- * (++c) + --d;

ii. (2+3)* 5//4+(4+6)/2

iii. ((10 * (6 / ((9 + 3) * -11))) + 17) + 5

iv. (17 < 4*3+5) || (8*2 == 4*4) && !(3+3 == 6)

b.Explain basic structure of c program.(6)

Section –B

Q.No.3.a.Explain briefly various C- tokens.(5)

b. Difference Between Type Casting and Type Conversion with example.(3)

c. Define algorithm and list its features and uses .(2)

OR

Q.No.4.a. Differentiate between while and do while loops.(5)

b. Explain nested loops in c with an example(anyone while,for,do-while)(5)


GOVERNMENT OF KARNATAKA
DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. I Semester, 2022-23

___________________________________________________________________________________
Subject with Code: Introduction to Python Programming (22PLC15B) Max. Marks: 20
Date: 20-01-2023 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch: AI & DS

Note : Solve only one complete question from each section.

Section -A

Q.No.1.a.Explain local and global scope (4)

b.What is data type ?Explain python basic data types.(4)

c.Differentiate between tuple and list.(2)

OR

Q.No.2.a.Evaluate Expressions(2)
i. ((10 * (6 / ((9 + 3) * -11))) + 17) + 5

ii. (17 < 4*3+5) || (8*2 == 4*4) && !(3+3 == 6)

b.Define range(),input(),print(),len() functions. (4)

c. Differentiate between string concatenation and string replication/repetition.(4)

Section -B

Q.No.3. a. List control statements Explain any one statement with example .(4)

b.What is Exception handling in python explain with example.(4)

c.Write note on tuple data type with example.(2)

OR

Q.NO.4 a. Explain list operations with example .(5)

b. Differentiate between range() and enumerate().(3)

c.Explain with example strings are immutable and list data type is mutable.(2)

GOVERNMENT OF KARNATAKA
DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – II Question Paper for B. E. I Semester, 2022-23
__________________________________________________________________________________

Subject with Code: Principles of Programming using C (22POP13) Max. Marks: 20


Date: 24-02-2023 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch:CSE

Note : Solve only one complete question from each section.

Section -A

Q.No.1.a.Differentiate between actual parameters and formal parameters. (5)

b.Explain call by value metod of parameter passing with example(5)

OR
Q.No2.a.Define scope .explain any one type of scope(file, block,program ,function)(5)

b.Explain how does recursion function works with an example(5)

Section -B

Q.No.3.a.Define array.what are its advantages/needs/uses.(5)

b. Explain row/column major array.(5)

OR

Q.No.4.a. Explain array traversal/array search operation with an example.(5)

b. define two and multidimensional array with syntax and example.(5)

GOVERNMENT OF KARNATAKA
DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – II Question Paper for B. E. I Semester, 2022-23
__________________________________________________________________________________
Subject with Code: Introduction to Python Programming (22PLC153) Max. Marks: 20
Date: 24-02-2023 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch:AI & DS

Note : Solve only one complete question from each section.

Section -A

Q.No.1.a.List and explain any 5 string methods with example (5)

b. Explain The join() and split() Methods with example(5)

OR

Q.No.2.a.explain home and current working directory(5)

b.Define File path why file paths are needed.(5)

Section -B

Q.No.3. a. Differentiate Absolute vs. Relative Paths (5)

b. Explain os/os.path module (5)

OR

Q.NO.4 a. Explain indexing and slicing with example .(5)

b. Explain file open read and write methods with an example program.(5)

GOVERNMENT OF KARNATAKA
DEPARTMENT OF COLLEGIATE AND TEHCHNICAL EDUCATION
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. I Semester, 2023-24
Department Of Artificial Intelligence And Data Science
__________________________________________________________________________________
Subject with Code: Introduction to Python Programming (22PLC153) Max. Marks: 20
Date: 17-11-2023 Duration: 1 Hour
Faculty Name: Prof: RenukaDevi Branch:AI & DS

Note : Solve only one complete question from each section.

Section -A
Q.No Questions M L CO
.
1.A 1. what is the need for role of precedence ?Illustrate the rules of 5 L1 CO1
precedence in python with example

1.B Define variable.What are rules for Python Variable 5 L1 CO1


Names/identifiers
OR

2.A 2. Explain break and continue statement with example. 5 L1 CO1

2.B 3. Define module.Explain methods for importing module 5 L1 CO1

Section -B
3.A Write various methods of List.Explain any one method 5 L1 CO2
with example
3.B Differentiate between list and dictionary 5 L1 CO2

OR

4.A 4. Explain raw string f’ string and string interpolation with 5 L1 CO2
example
4.B 5. The join() and split() Methods 5 L1 CO2

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: 20
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 2 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. 3 L1 CO1
OR
2.A Explain looping control statements in Python with a syntax 4 L1 CO1
and example to each.
2.B 6. What are functions? Explain Python function with parameters 4 L1 CO1
and return statements
2.C Mention FOUR scope rules of variables in Python. 2 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 3 L1 CO2
OR
4.A Explain negative indexing, 5 L1 CO2
slicing.index(),append(),remove(),pop(),insert() & sort().
4.B 7. Explain with a programming example to each: (i) get() (ii) 5 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.(2M)
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.(3M)
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.(4M)
2.C. Mention FOUR scope rules of variables in Python.(2M)
SECTION –B
3.A.Discuss list and dictionary data structure with example for each.(5M)
3.B.Differentiate between list and dictionary.(5M)
OR
4.A.Explain negative indexing, slicing.index(),append(),remove(),pop(),insert() & sort().(5M)
4.B. Explain with a programming example to each: (i) get() (ii) setdefault().(5M)

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.(2M)
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.(2M)
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.(4M)
2.C. Mention FOUR scope rules of variables in Python.(2M)
SECTION –B
3.A.Discuss list and dictionary data structure with example for each.(5M)
3.B.Differentiate between list and dictionary. .(5M)
OR
4.A.Explain negative indexing, slicing.index(),append(),remove(),pop(),insert() & sort()..(5M)
4.B. Explain with a programming example to each: (i) get() (ii) setdefault().(5M)

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. .(2M)
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. .(3M)
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. .(4M)
2.C.Mention FOUR scope rules of variables in Python. .(2M)
SECTION –B
3.A.Discuss list and dictionary data structure with example for each. .(5M)
3.B.Differentiate between list and dictionary. .(5M)
OR
4.A.Explain negative indexing, slicing.index(),append(),remove(),pop(),insert() & sort()..(5M)
4.B. Explain with a programming example to each: (i) get() (ii) setdefault()..(5M)

You might also like