Question 1 of 25
Hints left: 3
Q1
Which of the following functions can help us to find the version of python that we are currently working on?
Q2
Which one of the following is the use of function in python?
Q3
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
Q4
Which one of the following is not a keyword in Python language?
Q5
What does pip stand for python?
Q6
What is the order of precedence in python?
-
A
-
B
-
C
-
D
Q7
Which of the following functions is a built-in function in python?
Q8
Which of the following is true for variable names in Python?
Q9
What will be the output of the following Python code? x = [[0], [1]] print((' '.join(list(map(str, x))),))
Q10
What is the purpose of an if-statement in Python?
Q11
What will be the output of the following Python program? i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
Q12
What is the output of print("Hello, World!")?
Q13
What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
Q14
Which of the following is the use of id() function in python?
Q15
Which of these is the definition for packages in Python?
Q16
Which of the following is not a core data type in Python programming?
Q17
The following python program can work with . . . . . . . . parameters. def f(x): def f1(*args, **kwargs): print("Examveda") return x(*args, **kwargs) return f1
Q18
What will be the output of the following Python function? len(["hello",2, 4, 6])
Q19
What is the output of print("Hello, " + "world!")?
Q20
What does the range() function in Python generate?
Q21
Python supports the creation of anonymous functions at runtime, using a construct called . . . . . . . .
Q22
To add a new element to a list we use which Python command?
Q23
What will be the output of the following Python code? def foo(): try: return 1 finally: return 2 k = foo() print(k)
Q24
What is the order of namespaces in which Python looks for an identifier?
Q25
What will be the value of the following Python expression? 4 + 3 % 5