Online Test - Flow of Control

Description

Quiz on Online Test - Flow of Control, created by Aparna Dhirde on 14/03/2020.
Aparna Dhirde
Quiz by Aparna Dhirde, updated more than 1 year ago
Aparna Dhirde
Created by Aparna Dhirde over 5 years ago
101
0
1 2 3 4 5 (0)

Resource summary

Question 1

Question
A loop inside another loop is called a nested loop.
Answer
  • True
  • False

Question 2

Question
While statement iterates over a range of values or a sequence.
Answer
  • True
  • False

Question 3

Question
If the condition of the while loop is initially false, the body is executed once.
Answer
  • True
  • False

Question 4

Question
To break the infinite loop , which keyword we use ?
Answer
  • continue
  • break
  • exit
  • None of the above

Question 5

Question
For loop in python is……..
Answer
  • Entry control loop
  • Exit control loop
  • Simple loop
  • None of the above

Question 6

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 7

Question
do while loop is used in python.
Answer
  • True
  • False

Question 8

Question
We can go back to the start of the loop by using break.
Answer
  • True
  • False

Question 9

Question
A loop that never ends is called a finite loop.
Answer
  • True
  • False

Question 10

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)
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

Tips for IB History Paper 1
enyarko
Gothic vocabulary
lizzie.lambrou
Key Events, People and Terms of the French Revolution
poppwalton
AQA Biology A2 Unit 4 Respiration
Gemma Lucinda
Biology B2.1
Jade Allatt
BELIEVING IN GOD- UNIT 1, SECTION 1- RELIGIOUS STUDIES GCSE EDEXCEL
Khadijah Mohammed
Research Methods
Joanna Griffith
Biology B2.3
Jade Allatt
GCSE Chemistry C3 (OCR)
Usman Rauf
Biology (B2)
Sian Griffiths