C++ QUIZ

C++ QUIZ

12th Grade

14 Qs

quiz-placeholder

Similar activities

QUIS SUMATIF 1

QUIS SUMATIF 1

12th Grade

15 Qs

Diagnostico Grado Sexto

Diagnostico Grado Sexto

6th Grade - University

18 Qs

Мәтінді форматтау

Мәтінді форматтау

10th Grade - University

10 Qs

Fundamentals

Fundamentals

7th Grade - University

12 Qs

Quiz 1-15

Quiz 1-15

9th - 12th Grade

15 Qs

Kuis Python Lanjutan kelas XII

Kuis Python Lanjutan kelas XII

12th Grade

10 Qs

Tinklalapių kūrimo sąvokos

Tinklalapių kūrimo sąvokos

10th Grade - University

12 Qs

Google sheets

Google sheets

7th Grade - University

14 Qs

C++ QUIZ

C++ QUIZ

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Medium

Created by

AHMAD AINI

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who is the creator of C++?

Dennis Ritchie

James Gosling

Bjarne Stroustrup

Guido van Rossum

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In which year was C++ created?

1980✅

1983

1972

1991

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a correct C++ comment?

This is a comment

<-- This is a comment -->

# This is a comment

/* This is a comment */

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct syntax to print "Hello, World!" in C++?

print("Hello, World!");

Console.WriteLine("Hello, World!");

cout << "Hello, World!";

printf("Hello, World!");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this if-else statement?
int x = 10;
if (x > 10)
cout << "Greater";
else
cout << "Smaller";

Smaller

Greater

Error

No output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop execute?
for(int i = 0; i < 5; i++) {

cout << i << " ";

}

Infinite

6 times

4 times

5 times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this loop?
int i = 1;

while (i < 4) {

cout << i << " ";

i++;

}

1 2 3

0 1 2

1 2 3 4

Infinite loop

Create a free account and access millions of resources

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?