Online Test - Flow of Control

Description

Quiz on Online Test - Flow of Control, created by Aparna Dhirde on 03/14/2020.
Aparna Dhirde
Quiz by Aparna Dhirde, updated more than 1 year ago
Aparna Dhirde
Created by Aparna Dhirde over 4 years ago
96
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

Similar

'The Merchant of Venice' - William Shakespeare
cian.buckley
Business Studies Unit 2
tara.springate
Organic Chemistry
Ella Wolf
Characteristics and Climate of a hot desert
Adam Collinge
Biology (B2)
Sian Griffiths
Business Studies - AQA - GCSE - Types of Ownership
Josh Anderson
Mitosis
Selam H
Highway Code Road Signs for Driving Test
Sarah Egan
Navegacion
Adriana Forero
2PR101 1.test - Doplňující otázky
Nikola Truong
Linking Rossetti and A Doll's House
Mrs Peacock