Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
13 views

computer-5-sem-computer-programming-using-python-v2-180853-2023

The document is an examination paper for a Computer Programming Using Python course, consisting of multiple-choice questions, short answer questions, and long answer questions. It covers various topics including Python syntax, data types, functions, and programming concepts. The paper is structured into four sections with a total of 100 marks.
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)
13 views

computer-5-sem-computer-programming-using-python-v2-180853-2023

The document is an examination paper for a Computer Programming Using Python course, consisting of multiple-choice questions, short answer questions, and long answer questions. It covers various topics including Python syntax, data types, functions, and programming concepts. The paper is structured into four sections with a total of 100 marks.
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/ 2

No.

of Printed Pages : 4 b) def demoFunction()


Roll No. .................. 180853/170853 c) function demoFunction()
d) void demoFunction()
Q.6 How to access a value in Tuple? (CO-4)
5th Sem. / Computer Engg. a) mytuple (1) b) mytuple [1]
Subject : Computer Programming Using Python c) mytuple {1} d) None of the above
Q.7 Name the operator used in Python to raise numbers
Time : 3 Hrs. M.M. : 100 to the power? (CO-2)
a) Bitwise Operators
SECTION-A b) Exponentiation Operator
Note: Multiple choice Questions. All questions are c) Identify Operator
compulsory (10x1=10) d) Membership Operators
(Course Outcome/CO) Q.8 Name the statement which is used to import all the
Q.1 The extension of a Python Script File is (CO-2) functionally of one module into another.
a) .py b) .pyy (CO-6)
c) .pie d) none these a) import b) asset
Q.2 The following is an example of an invalid variable? c) try d) Exception
(CO-1) Q.9 Name the thing which represents a key-value pair
a) xyz_1 b) 1st in Python? (CO-4)
c) foo d) _qwe a) Tuples b) Lists
Q.3 A variable in Python with value 42.6 (CO-1) c) Dictionary d) all of the above
a) int a = 42.6 b) a = 42.6 Q.10 Name the thing which does not allow duplicate
c) integer a = 42.6 d) None values (CO-2)
Q.4 How to add a single-line comment in Python? a) Set b) lists
(CO-2) c) Tuples d) None of the above
a) /*This is comment*/
b) !! This is comment SECTION-B
c) // This is comment Note: Objective type questions. All questions are
d) # This is comment compulsory. 10x1=10
Q.5 How to correctly create a function in python? Q.11 Python Language was developed by...............
(CO-5)
(CO-1)
a) demoFunction()
Q.12 Give the purpose of input function. (CO-5)
(1) 180853/170853 (2) 180853/170853
Q.13 The return keyword is used in Python for.............. Q.28 Explain Dictionary and how it is created in Python
(CO-5) . (CO-4)
Q.14 Python Tuples are faster than lists?(True/False) Q.29 Explain the lambda function with suitable example.
(CO-4) (CO-2)
Q.15 The elements of a list can be accessed by using Q.30 Explain the usage of math module with example.
which operator. (CO-4) (CO-6)
Q.16 The variables declared outside of a function have Q.31 Define exception and how it is handled in Python?
scope. (CO-2) (CO-7)
Q.17 Name the module in Python which supports regular Q.32 Write a program to read the contents of a file.
expression? (CO-10) (CO-8)
Q.18 OOPS stands for............... (CO-9) Q.33 Define a class and how it is created in Python.
Q.19 Write the character which is used for searching (CO-9)
from the end. (CO-9) Q.34 Explain splitting of a string with example.
Q.20 Write the statement for opening a file c:/scores.txt (CO-10)
for reading? (CO-8) Q.35 Describe any four List function. (CO-4)

SECTION-C SECTION-D
Note: Short answer type questions. Attempt any twelve Note: Long answer type questions. Attempt any two out of
questions out of fifteen questions. 12x5=60 three questions. 2x10=20
Q.21 Explain the various numeric data supported by Q.36 List and explain different relational and logical
Python in brief. (CO-4) operators of python. (CO-2)
Q.22 Explain the print function with two examples. Q.37 Explain the various types of parameters passing in
(CO-5) python. Justify your answer with sample programs.
Q.23 Differentiate between break and continue
statement. (CO-3) (CO-5)
Q.24 Differentiate between List and Tuples. (CO-4) Q.38 Describe inheritance and explain the various types
Q.25 Explain the advantages of using a function in of python inheritance with the help of suitable
Python programming. (CO-5) examples. (CO-9)
Q.26 Write a program in Python to check if a number is
prime or not. (CO-4) (Note: Course outcome/CO is for office use only)
Q.27 Explain the nesting of loops in python with example.
(CO-3)

(3) 180853/170853 (1580) (4) 180853/170853

You might also like