Programming

Programming

1st - 10th Grade

10 Qs

quiz-placeholder

Similar activities

Ôn tập_CK1_22.23_Tin Học 3_Phần 2

Ôn tập_CK1_22.23_Tin Học 3_Phần 2

3rd Grade

10 Qs

TMK  TAHUN 4

TMK TAHUN 4

10th Grade

10 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

1st - 10th Grade

10 Qs

Technology in Teaching and Learning

Technology in Teaching and Learning

1st Grade

10 Qs

informatika 8 bab 1&2

informatika 8 bab 1&2

8th Grade

15 Qs

Animation 1

Animation 1

6th Grade

10 Qs

Co wiesz o Bluetooth oraz znajomość kabli

Co wiesz o Bluetooth oraz znajomość kabli

1st - 6th Grade

12 Qs

Programming

Programming

Assessment

Quiz

Computers

1st - 10th Grade

Practice Problem

Medium

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write an if statement?

if ()
als ()
else ()
else if ()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which for loop is correct?

for (1; x < 5; i--)
for(x; 5; ++1)
for(int i = 0; i < 5; i++)
for(int i = 0, i < 5, i++)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which while loop is correct?

while (true) { }
while true { }
continue (true) { }
while (1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one will return an value?

give 1;
rerun 2;
*a = 1;
return 1;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you invoke a function?

function { };
function[x];
function();
(function);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this give?  int a[2] = { 1, 5 }; int *p; p = a; p++;

*p = 1
p = 1
*p = 5
p = 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct array?

int a() = { 1, 2 };
int a{} = [ 1, 2 ];
int a = ( 1, 2 );
int a[2] = { 1, 2 };

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?