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