
Week-4 Repetition
Authored by Sudath Heiyanthuduwage
Computers
University
Used 67+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
CS100||MsWord
Quiz
•
University
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Software dan Hardware
Quiz
•
University
10 questions
Peranti Input Ouput
Quiz
•
University
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
10 questions
Website Usability and UX
Quiz
•
University
10 questions
Hands-on Modul 3
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University