SLG IPC Week 4

SLG IPC Week 4

University

12 Qs

quiz-placeholder

Similar activities

Weekly Contest #6 - TechXNinjas

Weekly Contest #6 - TechXNinjas

University

10 Qs

Mamanua 2-Elsaday Geovanka Dipan

Mamanua 2-Elsaday Geovanka Dipan

University

10 Qs

Quiz 1a NDJ30103

Quiz 1a NDJ30103

University

10 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

C++ Chapter 5

C++ Chapter 5

University

17 Qs

Conceitos da linguagem C e comandos de decisão e repetição

Conceitos da linguagem C e comandos de decisão e repetição

University

13 Qs

Arduino Quiz 2

Arduino Quiz 2

University

10 Qs

Scratch Basics Term 3 Final

Scratch Basics Term 3 Final

KG - University

14 Qs

SLG IPC Week 4

SLG IPC Week 4

Assessment

Quiz

Computers

University

Medium

Created by

Novell Rasam

Used 5+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Did you turn memes on?

Yes, of course. Who could forget the memes?

What memes? I don't remember seeing that option.

I saw the option, but didn't turn them on.

They're already on by default.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does default do in a switch statement?

Executes code regardless if a case matches or not.

Executes code in the event no case is matched.

Exits from the switch construct.

What's a switch statement?

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

if (minutes > 1)

s = 's';

else

s = ' ';

Can be rewritten as?

s =

minutes > 1 ? 's' : ' ';

s =

if (minutes > 1)

's' : ' ';

s =

minutes > 1 ? ' ' : 's';

s = 's' : ' ';

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Pick the odd one out.

While

Do while

For

Switch

5.

OPEN ENDED QUESTION

1 min • 1 pt

What is the difference between a do while and a regular while loop?

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

2 mins • 1 pt

Write an example of a for loop.

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which for loop uses a flag properly?

for (int i = 0; i < 10 && done == 0; i++)

for (int flag = 0; flag < 10; flag++)

for (i = 0; flag == 0; i++)

for (int i = 0; i < 10 && i == 0; i++)

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?