Array

Array

University

17 Qs

quiz-placeholder

Similar activities

Informatika

Informatika

University

15 Qs

If else

If else

University

15 Qs

OOPS-1

OOPS-1

University

20 Qs

Practice Quiz 1 - CS110

Practice Quiz 1 - CS110

University

13 Qs

PHP Quiz

PHP Quiz

University

16 Qs

oop with c++

oop with c++

University

20 Qs

Quiz 9: Pointer

Quiz 9: Pointer

University

12 Qs

PHP hypertext preprocessor

PHP hypertext preprocessor

University

20 Qs

Array

Array

Assessment

Quiz

Computers

University

Medium

Created by

Nurul Arifuddin

Used 17+ times

FREE Resource

17 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

string cars[4] = {"Volvo", "BMW", "Ford","Mazda"};

cout << cars[3];

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

int umur[5] = {2, 4, 10, 12};

cout << umur[4];

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

int umur[5] = {2, 4, 10, 12, 17};

cout << umur[4] << endl;

cout << umur[0];

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};

cars[2] = "Opel";

cout << cars[0];

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};

cars[2] = "Opel";

cout << cars[0];

cout << cars[3];

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

int myNumbers[5] = {10};

for (int i : myNumbers) {

cout << i << "\n";

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Output dari syntax berikut adalah?

int myNumbers[5] = {10, 20};

for (int i : myNumbers) {

cout << i << "\n";

}

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?