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

PYTHON MODEL QUESTION

Uploaded by

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

PYTHON MODEL QUESTION

Uploaded by

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

GOVERNMENT ARTS AND SCIENCE COLLEGE, PENNAGARAM

DEPARTMENT OF COMPUTER SCIENCE


DATE: 01-04-2024 MODEL EXAM MAR 2024
TIME 3:00 HR PYTHON PROGRAMMING MAX MARK: 75

PART A (Answer All The Question) 15X1=1 marks


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. 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
4. Is Python case sensitive when dealing with identifiers(yes/no)______?
5. In which language is Python written?
a) English
b) PHP
c) C
d) All of the above
6. Which keyword is used for function?
a) Fun
b) Define
c) def
d) Function
7. Program code making use of a given module is called a ______ of the module.
8. Which of the following is not an advantage of using modules?
a) Provides a means of reuse of program code
b) Provides a means of dividing up tasks
c) Provides a means of reducing the size of the program
d) Provides a means of testing individual parts of the program
9. What does pip stand for python?
a) Pip Installs Python
b) Pip Installs Packages
c) Preferred Installer Program
d) All of the mentioned
10. Which of the following functions is a built-in function in python?
a) factorial() b) print() c) seed() d) sqrt()
11. Which of the following is not a core data type in Python programming?
a) Tuples b) Lists c) Class d) Dictionary
12. Which one of the following is the use of function in python?
a) Functions don’t provide better modularity for your application
b) you can’t also create your own functions
c) Functions are reusable pieces of programs
d) All of the mentioned
13. Which of the following is a Python tuple?
a) {1, 2, 3}
b) {}
c) [1, 2, 3]
d) (1, 2, 3)

14. To open a file c:\scores.txt for writing, we use ____________


a) outfile = open(“c:\scores.txt”, “w”)
b) outfile = open(“c:\\scores.txt”, “w”)
c) outfile = open(file = “c:\scores.txt”, “w”)
d) outfile = open(file = “c:\\scores.txt”, “w”)
15. To open a file c:\scores.txt for reading, we use _____________
a) infile = open(“c:\scores.txt”, “r”)
b) infile = open(“c:\\scores.txt”, “r”)
c) infile = open(file = “c:\scores.txt”, “r”)
d) infile = open(file = “c:\\scores.txt”, “r”)
16. Which shell is the most common and best to use?
a) Korn shell
b) POSIX shell
c) C shell
d) Bash shell
PART B (write any two questions) 5 marks(2X5=10)
1. Write short notes on “Python objects”?
2. Write short notes on “Strings and strings operators”?
3. Write short notes on “Python Dictionaries”?
4. Write short notes on “Python classes”?
5. Write short notes on “REs and Python”?

PART C (Answer All The Question) 10 marks(5X10=50)


1. A. Brief notes on ” Python features”?
OR
B. Brief notes on ” Python Standard types and other built-in Types”?
2. A. Brief notes on ” Python Numbers”?
OR
B. Brief notes on” Lists and Tuples ”?
3. A. Brief notes on ” Conditionals and loops”?
OR
B. Brief notes on ”Python Files and Input/Output”?
4. A. Brief notes on” Python Functions and Functional Programming”?
OR
B. Brief notes on”Python Modules ”?
5. A. Brief notes on” Basic Database Operations and SQL”?
OR
B. Brief notes on” Regular Expression”?

You might also like