You are on page 1of 1

Sr No Question A B C D Ans

1 Python was developed by Guido van Rossum James Gosling Dennis Ritchi Bjarne Stroustrup A
2 Python was developed in which year? 1972 1995 1989 1981 C
3 Python is written in which language? C C++ Java English A
4 What is the extension of the python file? .p .py .pyh .python B
5 Python is an Object-Oriented Programming Language. TRUE FALSE A
6 Python 3.0 is released in which year? 2000 2008 2011 2016 B
Python is a high level Python is an interpreted Python is an object-oriented
7 Which of the following statements is true? All of the above D
programming language language. language
8 What is used to define a block of code in Python? Parenthesis Indentation Curly braces square bracket B
9 What is a python file with .py extension called? package module directory class B
By the use of which character, single line is made comment in
10 * @ # ! C
Python?
11 Is python programming uses a pair of curly braces {} TRUE FALSE B
Which mode is good to run the individual statements of the
12 script mode Interactive mode Compiler mode Interpreter mode B
code?
List is immutable && Tuple is List is mutable && Tuple is
13 Which statement is correct? Both are Mutable. Both are Immutable B
mutable immutable
What is the output of the following program: print((1, 2) + (3,
14 (1, 2), (3, 4) (4, 6) (1, 2, 3, 4) Invalid Syntax C
4))
15 Which one of the following is a mutable data type? set int str tuple A
16 Which of these is not a core data type? List Dictionary Tuple Class D
17 What data type is the object below? L = [1, 23, 'hello', 1] List Dictionary Array Tuple A
18 Which function is used to take input in python? scanf() int() prompt() input() D
19 What data type is the object below? L = ( 'hello', 1) List Dictionary Array Tuple D
20 In python, dictionaries are defined with _______ { } ( ) [ ] " " A
21 Which of these is the keyword? in is assert all D
What is the maximum possible length of an
22 16 32 64 not defined D
identifier?
Which of the following is not a keyword in
23 val raise try with A
Python language?
Which of the following declarations is incorrect in x y z p = 5000 6000 x,y,z,p = 5000, 6000,
24 xyzp = 5,000,000 x_y_z_p = 5,000,000 B
python language? 7000 8000 7000, 8000
Which of the following words cannot be a
25 val _val try _try_ C
variable in python language?
We can also use the ___________ for multiline
26 single quotes ('') double quotes ('''') triple quotes ('''''') All C
comment.
In python, reference to the number object can be deleted
27 del DEL remove REMOVE A
using __________
28 * operator isknown as_________ concatenatation operator multiplication operator repetation operator joining operator C
29 To access data from the list _____ operator is used. * : // # B
30

You might also like