
Week-4 Repetition

Quiz
•
Computers
•
University
•
Hard

Sudath Heiyanthuduwage
Used 66+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the disadvantage of coding in one long sequence structure?
Duplicated code makes the program faster to write.
Writing a long sequence of statements is error prone.
If parts of the duplicated code have to be corrected, the correction has to be made many times.
It does not make use of decision structures.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop structure repeats the code a specific number of times?
Condition-controlled loop
Number-controlled loop
Count-controlled loop
Boolean-controlled loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the values that the variable num contains through the iterations of the following for loop?
for num in range(2, 9, 2)
2, 3, 4, 5, 6, 7, 8, 9
2, 5, 8
2, 4, 6, 8
1, 3, 5, 7, 9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable used to keep the running total is called a(n) _____.
Accumulator
Total
running total
grand total
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
_____ is the process of inspecting data that has been input to a program to make sure it is valid before it is used in a computation.
Input validation
Correcting data
Data validation
Correcting input
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The first input operation is called the _____, and its purpose is to get the first input value that will be tested by the validation loop.
priming read
first input
loop set read
loop validation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When will the following loop terminate?
while keep_on_going != 999 :
When keep_on_going refers to a value less than 999
When keep_on_going refers to a value greater than 999
When keep_on_going refers to a value equal to 999
When keep_on_going refers to a value not equal to 999
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
CSC126_Chapter4_Part1

Quiz
•
University
10 questions
ภาษาไพธอน

Quiz
•
University
10 questions
PYTHON BASICS PART 1

Quiz
•
University
10 questions
7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
Introduction to Computer Programming

Quiz
•
6th Grade - University
15 questions
Lec2

Quiz
•
University
15 questions
PYTHON UNIT I MCQS

Quiz
•
University
15 questions
Visual Basic

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade