Mastery

Mastery

University

44 Qs

quiz-placeholder

Similar activities

DSA QUIZ - 2 (17-06-23)

DSA QUIZ - 2 (17-06-23)

University

40 Qs

JavaScript - Practice 9

JavaScript - Practice 9

University

40 Qs

JavaScript Basics

JavaScript Basics

University

41 Qs

Python Quiz

Python Quiz

University

40 Qs

Struktur Data

Struktur Data

University

45 Qs

Organización de datos

Organización de datos

University

40 Qs

Ujian Tengah Semester Informatika

Ujian Tengah Semester Informatika

10th Grade - University

40 Qs

IT 121- Formative Assessment # 2

IT 121- Formative Assessment # 2

University

40 Qs

Mastery

Mastery

Assessment

Quiz

Computers

University

Easy

Created by

ZPPSU VLs

Used 1+ times

FREE Resource

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of this C++ code? int a = 7, b = 3; cout << a % b;
1
2
3
0

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does this C++ code output? bool x = true, y = false; cout << (x || y);
1
0
True
False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the result of this expression? (5 != 3) && (4 < 2)
True
False
1
0

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of this C++ code? int x = 10; cout << --x << " " << x--;
9 9
9 8
10 9
9 10

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will this code print? int x = 5, y = 8; cout << (x < y ? x : y);
5
8
13
Error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be printed? int num = 3; if (num % 2 == 0) cout << "Even"; else cout << "Odd";
Even
Odd
3
Error

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identify the error in this if statement: if (x = 5) cout << "Five";
x should be == 5
Missing semicolon
cout should be printf
x should be declared

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?