Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
x = 5 print("x =", x)
x = 5
x
5
x, 5
while i in range(10):
while (i < 10)
while (i != 10)
while i = 10
==
!=
<=
<>
list.remove(element)
list.pop(element)
del list[element]
All of the above
Integer
Float
Double
String
x = 2 y = 5 z = x + y print("The sum of", x, "and", y, "is", z)
The sum of 2 and 5 is 7
The sum of x and y is z
The sum of x and y is 7
None of the above
file.readline()
file.read(line)
read(file, line)
file.read()
// This is a comment
/* This is a comment */
# This is a comment
// This is a comment //
>
<
+
1_name
my_variable
$test
class