
ICT3_MT_W5-6_SW2
Authored by JB Presa
Computers
11th Grade
Used 3+ 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 a practical use of a for loop in C#?
Traversing arrays
Infinite calculations
Skipping iterations
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which scenario causes an infinite loop?
for (int i = 0; i < 10; i--)
for (int i = 0; i != 10; i++)
for (int i = 0; i < 10; i++)
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is more efficient for traversing an array?
for loop
foreach loop
Both are the same
Depends on the array size
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part of the for loop determines how long it will run?
Initialization
Condition
Increment/Decrement
Body of the loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is ideal for creating a multiplication table?
Single for loop
Nested for loops
Foreach loop
Recursive function
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax for a for loop in C#?
for (initialization; condition; update) { ... }
for (initialization, condition, update) { ... }
for [initialization; condition; update] { ... }
for {initialization; condition; update}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be iterated using a foreach loop?
Arrays
Lists
Strings
All of the above
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?