SLG IPC Week 4

SLG IPC Week 4

University

12 Qs

quiz-placeholder

Similar activities

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

switch case

switch case

University

17 Qs

CSC126_Chapter4_Part1

CSC126_Chapter4_Part1

University

10 Qs

Quiz Ke 8 alprog if-09

Quiz Ke 8 alprog if-09

University

10 Qs

1°DS _AV2_R2 1TEC_IP_Introd. e Conceitos Básicos de JavaScript

1°DS _AV2_R2 1TEC_IP_Introd. e Conceitos Básicos de JavaScript

11th Grade - University

16 Qs

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

Scratch Basics Term 3 Final

Scratch Basics Term 3 Final

KG - University

14 Qs

Java Control Flow and Collections

Java Control Flow and Collections

University

10 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?