1.
Consider the following code segment and identify what will be the output of given Python code?
a = int(input("Enter an integer: "))
b = int(input("Enter an integer: "))
if a <= 0:
b = b +1
else:
a = a + 1
2.
list, tuple, and range are the ___ of Data Types.
3.
Amongst which of the following is / are true with reference to loops in Python?
4.
Amongst which of the following shows the types of function calls in Python?
5.
Amongst which of the following is / are the Numeric Types of Data Types?
6.
What will be the output of the following Python code?
x=13
if x>12 or x<15 and x==16:
print("Given condition matched")
else:
print("Given condition did not match")
7.
Amongst which of the following is / are true about the while loop?
8.
The for loop in Python is used to ___ over a sequence or other iterable objects.
9.
Amongst which of the following is / are the method of list?
10.
In Python, ___ defines a block of statements.
11.
The continue keyword is used to ___ the current iteration in a loop.
12.
In a Python program, Nested if Statements denotes?
13.
What will be the output of the following Python code?
def show(id,name):
print("Your id is :",id,"and your name is :",name)
show(12,"deepak")
14.
Amongst which of the following is / are the logical operators in Python?
15.
The following is used to define a ___.
16.
A function is a group of related statements which designed specifically to perform a ___.
17.
The ___ is a built-in function that returns a range object that consists series of integer numbers, which we can iterate using a for loop.
18.
Can we pass List as an argument in Python function?
19.
The type() function can be used to get the data type of any object.
20.
Python is a ___object-oriented programming language.