Programming

Programming

1st - 10th Grade

10 Qs

quiz-placeholder

Similar activities

Classes in C++

Classes in C++

6th - 9th Grade

14 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

Unit 1,2, and 3 Review

Unit 1,2, and 3 Review

9th - 12th Grade

15 Qs

W3+4_CT

W3+4_CT

10th Grade

10 Qs

operators(part-2_26/07)

operators(part-2_26/07)

9th Grade

10 Qs

UAS Logika dan Algoritma Pemrograman

UAS Logika dan Algoritma Pemrograman

1st Grade - University

15 Qs

Java  Quiz (Who knows java best?)

Java Quiz (Who knows java best?)

7th - 10th Grade

10 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

Programming

Programming

Assessment

Quiz

Computers

1st - 10th Grade

Medium

Used 1K+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?