SDF-1 Quiz

SDF-1 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Coding Agroekoteknologi - Kuis I

Coding Agroekoteknologi - Kuis I

University

10 Qs

training ep.2

training ep.2

University

11 Qs

C++ misc-1

C++ misc-1

University

15 Qs

Loops-2

Loops-2

University

15 Qs

Week 8: Vectors

Week 8: Vectors

University

14 Qs

Progdas-Q3-2023-2

Progdas-Q3-2023-2

University

10 Qs

Ulangan Harian Semester Genap Kelas X MM

Ulangan Harian Semester Genap Kelas X MM

University

10 Qs

FOP - CHAPTER 3

FOP - CHAPTER 3

University

10 Qs

SDF-1 Quiz

SDF-1 Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Dr. Pal

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 2 * 3 - 4 / 2 in C++?

4

5

6

7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, what is the value of sizeof(char) on a typical system?

1

2

4

8

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet in C?

int x = 5;

int y = x++;

cout << x << " " << y;

5 5

6 5

6 6

5 6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid data type in C?

long double

wchar_t

byte

unsigned int

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression (5 > 3) ? 1 : 0 in C?

1

0

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code in C?

int i = 1;

do {

cout << i << " ";

i++;

} while (i <= 5);

1 2 3 4 5

1 2 3 4

1 2 3

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following C code snippet do?

int i = 0;

while (i < 5) {

i++;

if (i % 2 == 0)

continue;

cout << i << " ";

}

It prints even numbers from 1 to 5.

It prints odd numbers from 1 to 5.

It does not print anything

It results in a compilation error.

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?