12th Computer Science Chapter- 6 Onemarks Online Test

Question 1: How many important control structures are there in python?
A) 3
B) 4
C) 5
D) 6
Question 2: elif can be considered to be a abbreviation of
A)nested if
B)if...else
C) else if
D) if...elif
Question 3: What plays a vital role in python programming?
A) Statements
B) Control
C) Structure
D) Indentation
Question 4: Which statement is generally used as a place holder?
A) continue
B) break
C) pass
D) goto
Question 5:The condition in the if statement should be in the form of
A) Arithmetic or Relational expression
B) Arithmetic or Logical expression
C) Relational or Logical expression
D) Arithmetic
Question 6: Which of the following is known as definite loop?
A)do.. while
B) while
C) for
D) if...elif
Question 7: What is the output for the following snippet?
i=1
 while True:
   if i%3==0:
     break
   print(i,end=' ')
   i+=1
A)12
B)123
C)1234
D)124
Question 8: What is the output for the following snippet?
T=1
while T:
  print(True)
  break
A)False
B) True
C) 0
D)1
Question 9: Which among this is not a jump statement?
A) for
B) pass
C) continue
D) break
Question 10: Which punctuation should be used in the blank?
if [condition]_
   statements-block1
else:
   statements-block2
A) ;
B) :
C) ::
D) !

Report Card

Total Questions Attempted: 0

Correct Answers: 0

Wrong Answers: 0

Percentage: 0%

Post a Comment

0 Comments