Quiz 2

Quiz 2

University

11 Qs

quiz-placeholder

Similar activities

Java Quiz 3

Java Quiz 3

University

15 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Porcentajes

Porcentajes

University

12 Qs

Aplikasi Komputer Pengolah Angka

Aplikasi Komputer Pengolah Angka

University

10 Qs

Create a Website 1

Create a Website 1

KG - University

10 Qs

QUIS-2 IT AUDIT

QUIS-2 IT AUDIT

University

11 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Programming

Programming

University

12 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

MA CPC

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 int x = 32;

      if( x % 2) cout << "odd" ;

   else cout << "even" ;

odd

even

syntax error

odd even

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 8;

      if( x > 10) cout << "yes" ;

   else cout << "no" ;


YES

NO

no

yes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int age = 22;

if(age >= 18 && age < 65) cout << "adult";

else cout << "not adult";


adult

not Adult

syntax error

adult not adult

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 0;

if(x) cout << " non-zero";

else cout << "zero";


Non-zero

zero

 syntax error

Non-zero Zero

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

char grade = 'B';

if(grade == 'A') cout << "Excellent"; 

else if(grade == 'D') cout << "Pass";



Excellent

Good

Pass

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a = 3;

if (a = 5)

    cout << "True";

else

    cout << "False";


True

False

Syntax error

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 2;

  cout << ( ( x > 2) ? "Good" : "Bad" );


Bad

Good

Syntax error

None of the above

Access all questions and much more by creating a free account

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?