0% found this document useful (0 votes)
10 views3 pages

Quiz Mid1 25

This document is a quiz for II B. Tech – II Sem students at J.B. Institute of Engineering & Technology, focusing on Python programming. It consists of multiple-choice questions, fill-in-the-blank questions, and a matching section related to Python concepts. The quiz is designed to assess students' understanding of Python language fundamentals and syntax.

Uploaded by

khaleel2791
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Quiz Mid1 25

This document is a quiz for II B. Tech – II Sem students at J.B. Institute of Engineering & Technology, focusing on Python programming. It consists of multiple-choice questions, fill-in-the-blank questions, and a matching section related to Python concepts. The quiz is designed to assess students' understanding of Python language fundamentals and syntax.

Uploaded by

khaleel2791
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

J.B.

INSTITUTE OF ENGINEERING & TECHNOLOGY


UGC Autonomous
II B. Tech – II Sem - (2023 Batch) March -2025
PYTHON PROGRAMMING
QUIZ-1

Max Marks: 5 Time: 20 Minutes

Roll No: Name:


Answer all Questions
¼ X 20 = 5 Marks

Questions Answer

1. Who developed Python Programming Language?


[ ]
a) Wick van Rossum
b) Rasmus Lerdorf
c) Guido van Rossum
d) Niene Stom

2. Which type of Programming does Python support?


[ ]
a) object-oriented programming
b) structured programming
c) functional programming
d) all of the mentioned

3. Is Python case sensitive when dealing with identifiers?


[ ]
a) no
b) yes
c) machine dependent
d) none of the mentioned

4. Which of the following is the correct extension of the Python file?


[ ]
a) .python
b) .pl
c) .py
d) .p

5. What will be the value of the following Python expression?


[ ]
4+3%5

a) 7

b) 2

c) 4
d) 1d

6. Which of the following is used to define a block of code in Python language?


[ ]
a) Indentation
b) Key
c) Brackets
d) All of the mentioned

7. Which keyword is used for function in Python language?


[ ]
a) Function
b) def
c) Fun
d) Define

8. Which of the following character is used to give single-line comments in


[ ]
Python?
a) //
b) #
c) !
d) /*

9. Which of the following is the truncation division operator in Python?


[ ]
a) |
b) //
c) /
d) %

10. What will be the output of the following Python function? len(["hello",2, 4,
[ ]
6])

a) Error
b) 6
c) 4
d) 3

Fill in the blanks


11. What is the output when we execute list(“hello”)? _____________________

12. A dictionary consists of a collection of ____________ pairs

13 Person=______________ defines an empty dictionary.

14.___________ adds the element ‘a’ to the set s1.

15. For concatenating tuples ____________ operator is used.


16 to 20.

Match the Following with List I with List II

List I List II

1. Converting a string to uppercase A. ==

2. Function to remove an element B. values


from a list

3. Comparison operators C. def my_method(self, ___):

4. Getting all the values from a D. remove


dictionary

5. Creating methods in the class E .upper()

You might also like