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
function my_function():
def my_function():
define my_function():
func my_function():
Integer
Float
Double
String
function_name(arguments):
def function_name(arguments):
function_name(arguments)
None of the above
file = open(filename, "r")
file = open("r", filename)
file = open(filename, "w")
file.readline()
file.read(line)
read(file, line)
file.read()
class my_class():
define class my_class:
def my_class():
class my_class:
x = 1
y = "Hello"
z = 3.14
2 = a
What is the output of the following code?
x = 3 if x > 5:print("x is greater than 5") elif x > 2:print("x is greater than 2") else:print("x is less than or equal to 2")
x is greater than 5
x is greater than 2
x is less than or equal to 2
open_file("example.txt")
open("example.txt")
file.open("example.txt")
with open("example.txt") as file: