Which of the following is used to start a loop in Python?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
for
Answer option 2
loop
Answer option 3
iterate
English
What is the output of print(10 % 3)?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
1
Answer option 2
0
Answer option 3
3
Reference Link
English
Which of the following is used to create a new class in Python?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
class
Answer option 2
Class
Answer option 3
newclass
Reference Link
English
What is the output of print('Hello'.upper())?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
HELLO
Answer option 2
hello
Answer option 3
Hello
Reference Link
English
What is the output of print(3 == 3.0)?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
True
Answer option 2
False
Answer option 3
None
Reference Link
English
What is the output of print('5' * 2)?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
55
Answer option 2
10
Answer option 3
25
Reference Link
English
Which of the following is not a keyword in Python?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
include
Answer option 2
pass
Answer option 3
lambda
English
Which method can be used to remove any whitespace from both the beginning and the end of a string?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
strip()
Answer option 2
trim()
Answer option 3
cut()
Reference Link
English
How do you insert COMMENTS in Python code?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
# This is a comment
Answer option 2
// This is a comment
Answer option 3
<!-- This is a comment -->
English
Which of the following is a correct way to create a complex number?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
complex(1, 2)
Answer option 2
1 + 2i
Answer option 3
complex(1, 2i)
Reference Link
English