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

Python Programming_UT1 QP

This document is a unit test for I B.Sc. (CS) students at M.G.R. College, focusing on Python Programming. It includes multiple-choice questions, short answer questions, and detailed coding questions covering Python features, identifiers, literals, expressions, and operators. The test is structured into three sections with a total of 50 marks.

Uploaded by

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

Python Programming_UT1 QP

This document is a unit test for I B.Sc. (CS) students at M.G.R. College, focusing on Python Programming. It includes multiple-choice questions, short answer questions, and detailed coding questions covering Python features, identifiers, literals, expressions, and operators. The test is structured into three sections with a total of 50 marks.

Uploaded by

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

M.G.R.

COLLEGE, HOSUR - 635130


DEPARTMENT OF COMPUTER SCIENCE
UNIT TEST I

Class: I B.Sc.(CS) ‘A’ , ‘B’ & ‘C’ Sec Maximum Marks: 50 Time:

Subject Title: Python Programming Subject Code: 23UCSCC01 Date:

SECTION – A 10 x 1 = 10 Marks
Choose the correct answer :
Which of the following describes Python?
1.
a) Interpreted b) Reliable c) Simple d) All of these
_______ are reserved memory locations that stores values.
2.
a) Keywords b) Variables c) String d) None of these
The input( ) function takes user’s input as a ________.
3.
a) integer b) float c) string d) character
Literals of the form a + bi are called __________ number.
4.
a) integral b) floating c) complex d) decimal
To specify more than one statement in a single line, use a ________ to separate the
5. statements.
a) , b) ; c) : d) /
Which operator gives the remainder after division?
6.
a) / b) // c) % d) **
What is the output of this code?
7. >>> int("30" + "40")
a) “70” b) “3040” c) 3040 c) (“30” + “40”)
Bitwise operator can be applied on which data type?
8.
a) integer b) float c) string d) list
What is the output of this code?
>>> float("123" * int(input(“Enter a number:”)))
9.
Enter a number: 3
a) “123123123” b) “369.0” c) 123123123.0 d) 369.0
Identify the expression that may result in arithmetic overflow.
10.
a) a * b b) a ** b c) a / b d) a + b
SECTION – B 2 x 5 = 10 Marks
Answer all the questions :
11. Describe the features and limitations of Python.

12. What are identifiers? List the rules to name an identifier.


SECTION – C 3 x 10 = 30 Marks
Answer all the questions :
13. What are literals? Explain with examples.

14. Write about Expressions in Python and its types with suitable coding.

15. Explain the various operators supported in Python with example.

You might also like