1.
Write your text here
2.
Write your text here
3.
What is a correct syntax to output "Hello World" in Python?
A. 
B. 
C. 
D. 
4.
A string is immutable in Python? Every time when we modify the string, Python Always create a new String and assign a new string to that variable.
5.
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var + var2 + var3)
A. 
B. 
C. 
D. 
Error. Mixing operators between numbers and strings are not supported
6.
Which operator has higher precedence in the following list
A. 
B. 
C. 
D. 
7.
What is the output of the following code?
str = "pynative"
print (str[1:3])
A. 
B. 
C. 
D. 
8.
Which one is NOT a legal variable name?
A. 
B. 
C. 
D. 
9.
What is the output of the following code?
p, q, r = 10, 20 ,30
print(p, q, r)
10.
What is the output of the following
x = 36 / 4 * (3 + 2) * 4 + 2
print(x)
A. 
B. 
The Program executed with errors
C. 
D. 
11.
Var = "KLS" * 2 * 3
print(var)
A. 
B. 
C. 
D. 
12.
Can we use the “else” clause for loops?
for example:
for i in range(1, 5):
print(i)
else:
print("this is else block statement" )
13.
What is the output of the following code?
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne is listTwo)
A. 
B. 
C. 
D. 
14.
How do you create a variable with the floating number 2.8?
A. 
B. 
C. 
Both the other answers are correct
15.
What is the correct syntax to output the type of a variable or object in Python?
A. 
B. 
C. 
D. 
16.
What is the correct way to create a function in Python?
17.
What is a correct syntax to return the first character in a string?
18.
Which method can be used to return a string in upper case letters?
A. 
B. 
C. 
D. 
19.
Which method can be used to replace parts of a string?
A. 
B. 
C. 
D. 
20.
Which of these collections defines a LIST?
A. 
("apple", "banana", "cherry")
B. 
{"name": "apple", "color": "green"}
C. 
{"apple", "banana", "cherry"}
D. 
["apple", "banana", "cherry"]
21.
Which of these collections defines a TUPLE?
A. 
("apple", "banana", "cherry")
B. 
["apple", "banana", "cherry"]
C. 
{"apple", "banana", "cherry"}
D. 
{name: "apple", "banana", "cherry"}
22.
Which of these collections defines a SET?
A. 
{name: "apple", "banana", "cherry"}
B. 
("apple", "banana", "cherry")
C. 
["apple", "banana", "cherry"]
D. 
{"apple", "banana", "cherry"}
23.
Which collection is ordered, changeable, and allows duplicate members?
A. 
B. 
C. 
D. 
24.
How do you start writing an if statement in Python?
25.
Which statement is used to stop a loop?
A. 
B. 
C. 
D.