Online Test - Flow of Control

Descrição

Quiz sobre Online Test - Flow of Control, criado por Aparna Dhirde em 14-03-2020.
Aparna Dhirde
Quiz por Aparna Dhirde, atualizado more than 1 year ago
Aparna Dhirde
Criado por Aparna Dhirde mais de 4 anos atrás
96
0

Resumo de Recurso

Questão 1

Questão
A loop inside another loop is called a nested loop.
Responda
  • True
  • False

Questão 2

Questão
While statement iterates over a range of values or a sequence.
Responda
  • True
  • False

Questão 3

Questão
If the condition of the while loop is initially false, the body is executed once.
Responda
  • True
  • False

Questão 4

Questão
To break the infinite loop , which keyword we use ?
Responda
  • continue
  • break
  • exit
  • None of the above

Questão 5

Questão
For loop in python is……..
Responda
  • Entry control loop
  • Exit control loop
  • Simple loop
  • None of the above

Questão 6

Questão
When does the else statement written after loop executes?.
Responda
  • When break statement is executed in the loop
  • When loop condition becomes false
  • Else statement is always executed
  • None of the above

Questão 7

Questão
do while loop is used in python.
Responda
  • True
  • False

Questão 8

Questão
We can go back to the start of the loop by using break.
Responda
  • True
  • False

Questão 9

Questão
A loop that never ends is called a finite loop.
Responda
  • True
  • False

Questão 10

Questão
Which of the following is a valid for loop in Python?.
Responda
  • for(i=0; i < n; i++)
  • for i in range(0,5):
  • for i in range(0,5)
  • for i in range(5)

Semelhante

Tabuada
Alessandra S.
Vocabulário de Geografia
Alessandra S.
Todos os verbos irregulares em inglês com tradução
Luiz Fernando
Engenharia de Software
Gabriel Alexandre
Plano de estudos ENEM - Parte 2 *Exatas/Biológicas
GoConqr suporte .
Prep Like a Pro with GoConqr's GCSE Revision Timetable
Landon Valencia
LIGAÇÕES QUIMICAS - flashcard
Lucas Cruz Vieira
Direito Constitucional I - Cartões para memorização
Silvio R. Urbano da Silva
Capítulo 1: Ligações Químicas
Mariana Mello
Egito Antigo
Júlia Flores
Apresentação da disciplina - Desenvolvimento e Sustentabilidade Ambiental - Medicina
Jéssica Meireles