C++ Quiz

C++ Quiz

University

10 Qs

quiz-placeholder

Similar activities

HTML Tag

HTML Tag

University

15 Qs

Tes Awal Modul 5

Tes Awal Modul 5

University

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

Tutorium 1 - Prog2

Tutorium 1 - Prog2

University

11 Qs

PythonProgramming

PythonProgramming

University

15 Qs

Teoria General de los Sistemas IF1300

Teoria General de los Sistemas IF1300

University

10 Qs

GAMTEK - PERTEMUAN 2

GAMTEK - PERTEMUAN 2

University

10 Qs

C++ Quiz

C++ Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

SATHISH KUMAR N

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.Who invented C++?

a) Dennis Ritchie

b) Ken Thompson

c) Brian Kernighan

d) Bjarne Stroustrup

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is used for comments in C++?

a) /* comment /

b) // comment /

c) // comment

d) both // comment or /* comment */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.Which of the following is a correct identifier in C++

a) VAR_1234

b) $var_name

c) 7VARNAME

d) 7var_name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.What happens if the following program is executed in C and C++?

#include <stdio.h>

int main(void){

int new = 5;

printf("%d", new); }

a) Error in C and successful execution in C++

b) Error in both C and C++

c) Error in C++ and successful execution in C

d) A successful run in both C and C++

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.Which of the following correctly declares an array in C++?

a) array{10};

b) array array[10];

c) int array;

d) int array[10];

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.What is the size of wchar_t in C++?

a) Based on the number of bits in the system

b) 2 or 4

c) 4

d) 2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which is more effective while calling the C++ functions?

a) call by object

b) call by pointer

c) call by value

d) call by reference

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?