1) Which of the following operation cannot be performed on a Python string?
2) Which one of the following is not a Python keyword?
3) When does the else statement written after the loop executes?
4) Which one of the following is a valid Python if statement :
5) Which inheritance is a blend of more than one type of inheritance?
6) Which of the following is not used as loop in Python?
7) Which of the following is a valid for loop in Python?
8) Suppose a user wants to print the second value of an array with 5 elements. What will be the syntax of the second value of the array?
9) In the Python Programming Language, syntax error is detected by ______ at _________.
10) Which of the following blocks allows you to handle the errors?
11) What is setattr() used for?
12) Which of the following blocks allows you to test the code blocks for errors?
13) A class variable or instance variable that holds data associated with a class and its object is known as?
14) What does ~4 evaluate to?
15) What does ~~~~~~5 evaluate to?
16) What is the answer to this expression, 22 % 3 is?
17) What is the output of this expression, 3*1**3?
18) The output of which of the codes shown below will be: “There are 4 blue birds.”?
19) Why are local variable names beginning with an underscore discouraged?
20) Python is often described as a:
21) How to output the string “May the odds favor you” in Python?
22) How to swap case in Python i.e. lowercase to uppercase and vice versa?
23) How to convert the uppercase letters in the string to lowercase in Python?
24) How to capitalize only the first letter of a sentence in Python?
25) How to convert the lowercase letters in the string to uppercase in Python?
26) How to check whether all the characters in a string is printable?
27) Python interpreter in interactive mode is known as ______ .
28) Which among the following is not a GUI development library in Python ?
29) Which among these is not a feature of Python ?
30) Find the invalid variable among the following:
31) Which one of these is incorrect?
32) The return value for trunc() would be:
33) Which function do we use to shuffle a list(say list1)?
34) Which function removes a set’s first and the last element from a list?
35) Which one of these is NOT true about recursion?
36) Which of these functions can NOT be defined under the sys module?
37) Which function doesn’t accept any argument?
38) In Python, the primary use of the tell() method is that:
39) The hasattr(obj,name) is used to:
40) In Python, find which one isn’t an exception handling keyword.
41) Amongst which of the following is / are the method used to unpickling data from a binary file?
42) Amongst which of the following is / are the method of convert Python objects for writing data in a binary file?
43) Amongst which of the following function is / are used to create a file and writing data?
44) The seek() method is used to ___.
45) The write() method takes a string as an argument and ___.
46) The function file_object.close() is used to ___.
47) Amongst which of the following is a function which does not have any name?
48) A function is a group of related statements which designed specifically to perform a ___.
49) The ___ is a built-in function that returns a range object that consists series of integer numbers, which we can iterate using a for loop.
50) The continue keyword is used to ___ the current iteration in a loop.
51) The for loop in Python is used to ___ over a sequence or other iterable objects.
52) Loops are known as ___ in programming.
53) In Python, the break and continue statements, together are called ___ statement.
54) Which of the following is false regarding conditional statement in Python?
55) Which of the following is not used as conditional statement in Python?
56) Amongst which of the following is / are the conditional statement in Python code?
57) Conditional statements are also known as ___ statements.
58) Python Dictionary is used to store the data in a ___ format.
59) The % operator returns the ___.
60) What is the name of the operator ** in Python?
61) bytes, bytearray, memoryview are type of the ___ data type.
62) list, tuple, and range are the ___ of Data Types.
63) Python is a ___object-oriented programming language.
64) The output to execute string.ascii_letters can also be obtained from:?
65) Which one of the following syntaxes is the correct syntax to read from a simple text file stored in ''d:\java.txt''?
66) Which one of the following has the highest precedence in the expression?
67) Which one of the following has the same precedence level?
68) Which of the following operators is the correct option for power(ab)?
69) Which of the following words cannot be a variable in python language?
70) Why does the name of local variables start with an underscore discouraged?
71) Which of the following statements is correct regarding the object-oriented programming concept in Python?
72) In which year was the Python 3.0 version developed?
73) In which language is Python written?
74) In which year was the Python language developed?
75) The process of pickling in Python includes ____________
76) Which of the following is the use of id() function in python?
77) Which of the following is a Python tuple?
78) What are the two main types of functions in Python?
79) Which one of the following is the use of function in python?
80) To add a new element to a list we use which Python command?
81) Which of the following statements is used to create an empty set in Python?
82) What arithmetic operators cannot be used with strings in Python?
83) Which module in the python standard library parses options received from the command line?
84) Which one of the following is not a keyword in Python language?
85) What is the order of namespaces in which Python looks for an identifier?
86) Which of these is the definition for packages in Python?
87) Which of the following is not a core data type in Python programming?
88) Which of the following functions is a built-in function in python?
89) Which of the following is the truncation division operator in Python?
90) Which of the following is true for variable names in Python?
91) What does pip stand for python?
92) What is the order of precedence in python?
93) Python supports the creation of anonymous functions at runtime, using a construct called __________
94) Which of the following functions can help us to find the version of python that we are currently working on?
95) Which of the following character is used to give single-line comments in Python?
96) Which keyword is used for function in Python language?
97) Which of the following is used to define a block of code in Python language?
98) Is Python code compiled or interpreted?
99) Which of the following is the correct extension of the Python file?
100) Who developed Python Programming Language?