ICT3_MT_W5-6_SW2

ICT3_MT_W5-6_SW2

11th Grade

10 Qs

quiz-placeholder

Similar activities

Do Now - Retrieval - Programming and Data Structures

Do Now - Retrieval - Programming and Data Structures

11th Grade

11 Qs

Hour of Code

Hour of Code

6th - 12th Grade

12 Qs

Programming - Iteration, Basic Programming Constructs & Loop

Programming - Iteration, Basic Programming Constructs & Loop

2nd - 12th Grade

10 Qs

Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

Topic 4.2 Video 1

Topic 4.2 Video 1

11th Grade

6 Qs

C# Loops (All)

C# Loops (All)

9th - 12th Grade

15 Qs

Quiz Javascript Basic Pertemuan 3

Quiz Javascript Basic Pertemuan 3

9th - 12th Grade

10 Qs

Lua Review Corona SDK with Notepad++

Lua Review Corona SDK with Notepad++

10th - 12th Grade

15 Qs

ICT3_MT_W5-6_SW2

ICT3_MT_W5-6_SW2

Assessment

Quiz

Computers

11th Grade

Hard

Created by

JB Presa

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?