Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
while i in range(10):
while (i < 10)
while (i != 10)
while i = 10
What is the output of the following code?
x = 5 y = "10" print(x + y)
15
510
TypeError
None of the above
print(7 % 3)
2
3
1
7
Which of the following is a valid variable name in Python?
123var
_variable
class
2_for_1
class my_class():
define class my_class:
def my_class():
class my_class:
Which of the following is an advantage of using Python?
Easy to learn and use
Low-level access to system resources
Better performance than other programming languages
Limited library support
x = "Hello World" print(x[4])
H
e
l
o
// This is a comment
/* This is a comment */
# This is a comment
// This is a comment //
int(string)
str(int)
string.int()
All of the above
This is a multi-line string
'''This is a multi-line string'''
"This is a multi-line string"