It will raise an IndexError.
It will iterate once with a default value of None.
It will not execute the loop body.
It will run indefinitely.
To execute when the loop is terminated using break.
To execute after the loop completes without encountering a break.
To restart the loop.
To execute before the loop starts
The outer loop must run fewer times than the inner loop.
Only for loops can be nested.
Both for and while loops can be nested.
The inner loop runs only once for each iteration of the outer loop.
while loop
for loop
do while loop
all of these
if
if-else
elif
if-else-if
a=2,b=3,c=4
a,b,c=2,3,4
a=2;b=3;c=4
Both b and c
Only One
1-10
Any number of Times
Any number of times but one inside another only.
What will the following code output?
x=0 if x: print("True") else: print("False")
True
False
None
Error
What is the output of the following code?
for i in range(3): print(i,end=" ")
0 1 2
1 2 3
0 1 2 3
count=0 while count<3: print(count,end=" ") count+=1
Match the following types of programming paradigms with their descriptions.
A-1, B-2, C-3, D-4
A-3, B-4, C-1, D-2
A-2, B-1, C-4, D-3
A-4, B-3, C-2, D-1
Match the types of programming languages with their characteristics.
1 → B, 2 → C, 3 → A, 4 → D
1 → A, 2 → B, 3 → D, 4 → C
1 → D, 2 → A, 3 → F, 4 → B
1 → B, 2 → F, 3 → C, 4 → A