Question 1
Question
User Define name called ……….
Answer
-
Identifier
-
constant
-
syntax
-
expression
Question 2
Question
If we overcome the rules of the programming language, we get.........
Answer
-
Runtime error
-
Syntax error
-
Logical error
-
None of the above
Question 3
Question
Correcting the program code:
Answer
-
Testing
-
Syntax error
-
Runtime error
-
Debugging
Question 4
Question
Designing the problem
Answer
-
Testing
-
Debugging
-
logical error
-
Algorithm
Question 5
Question
Algorithm when translated into a programming language is called......
Answer
-
Flowchart
-
Identifier
-
Code
-
debugging
Question 6
Question
Which is mapping data type
Answer
-
list
-
tuple
-
string
-
dictionary
Question 7
Question
Leading white space at the beginning of each statement, which is used to
determine the group of statement.
Answer
-
Testing
-
debugging
-
indentation
-
None of the above
Question 8
Question
It is a combination of Operators, Operands and Constants.
Answer
-
Identifier
-
Expression
-
Syntax
-
Task
Question 9
Question
Which operations result in 8?
Answer
-
65 // 8
-
17 % 9
-
2 * * 4
-
64 * * 0.5
Question 10
Question
If the value of a = 20 and b = 20, then a+=b will assign ________ to a
Question 11
Question
The ____________ operator is used to find out if division of two number
yields any remainder
Question 12
Question
The __________ data type allows only True/False values
Question 13
Question
What will be the output of the following Python code snippet?
not(10<20) and not (10>30)
Answer
-
true
-
false
-
error
-
no output
Question 14
Question
Which of the following is a valid for loop in Python?.
Answer
-
for(i=0; i < n; i++)
-
for i in range(0,5):
-
for i in range(0,5)
-
for i in range(5)
Question 15
Question
A while loop in Python is used for what type of iteration?.
Answer
-
indefinite
-
discriminant
-
definite
-
indeterminate
Question 16
Question
When does the else statement written after loop executes?.
Answer
-
When break statement is executed in the loop
-
When loop condition becomes false
-
Else statement is always executed
-
None of the above
Question 17
Question
for loop in python are work on
Answer
-
range
-
iteration
-
Both of the above
-
None of the above
Question 18
Question
To break the infinite loop , which keyword we use ?
Answer
-
continue
-
break
-
exit
-
none of the above
Question 19
Question
Which of the following is the loop in python ?
Answer
-
for
-
while
-
do while
-
Both a and b
Question 20
Question
To continue the infinite loop , which keyword we use ?
Answer
-
continue
-
break
-
exit
-
none of the above