
U4-A4-Understanding Key Programming Principles
Authored by Aram M
Computers
11th Grade
Used 1+ 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 main purpose of iteration in programming?
To execute a block of code once
To repeat a block of code multiple times
To define a function
To declare a variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a 'for loop' in Python?
`while (i < 5): print(i)`
`for i in range(5): print(i)`
`if (i < 5): print(i)`
`repeat print(i) until (i == 5)`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In mathematical logic, what does a truth table help to verify?
The speed of an algorithm
The syntax of a programming language
The truth values of logical expressions
The memory usage of a program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about propositional dynamic logic?
It is used to measure the speed of a computer
It is used to demonstrate the function of algorithms
It is used to design user interfaces
It is used to compile code
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a property of sets?
Sets can contain duplicate elements
Sets are ordered collections
Sets are immutable
Sets are unordered collections
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a 'for loop' and a 'while loop'?
A 'for loop' is used for indefinite iteration, while a 'while loop' is used for definite iteration
A 'for loop' is used for definite iteration, while a 'while loop' is used for indefinite iteration
A 'for loop' can only iterate over numbers, while a 'while loop' can iterate over any data type
A 'for loop' is faster than a 'while loop'
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
Microcontroller
Quiz
•
11th Grade - University
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th Grade
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Cultura Digital 1º Trimestre (6º)
Quiz
•
5th - 12th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
13 questions
Direcciones IP v4
Quiz
•
10th - 12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade