Search Header Logo

C++ quiz (finals)

Authored by Wilfredo Jr.

Computers

University

Used 8+ times

C++ quiz (finals)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

It is a basic data type that stores a single character/letter/number, or ASCII values.

string

char

int

Boolean

Answer explanation

The correct choice is 'char' because it is a basic data type that stores a single character/letter/number, or ASCII values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

C++ was developed by _________ and ____________.

Bjarne Stroustrup and Bell Laboratories

Bjarne Stroustrups and Albert Einstein

Bjarne Strostrup and Bel LaboratorieS

Bjarne Laboratories and Bell Stroustrup

Answer explanation

C++ was developed by Bjarne Stroustrup and Bell Laboratories, making the correct answer choice A.

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

These data types are built-in or predefined data types and can be used directly by the user to declare variables. example: int, char, float, bool, etc.

Primitive Data Types

Abstract or User-Defined Data Types

Derived Data Types

User-Defined Data Types

Answer explanation

Primitive Data Types are built-in or predefined data types that can be directly used by the user to declare variables like int, char, float, bool, etc.

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

It is a basic data type that stores true or false values.

char

int

boolean

string

Answer explanation

The correct choice is boolean because it is a basic data type that stores true or false values.

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

C++ was made available outside Bell Laboratories in 1985. The first commercial C++ compiler, Cfront, was released in _________.

1985

1995

1989

1975

Answer explanation

The first commercial C++ compiler, Cfront, was released in 1985, the same year C++ was made available outside Bell Laboratories.

6.

MULTIPLE SELECT QUESTION

30 sec • 2 pts

The data types that are derived from the primitive or built-in datatypes are referred to as ________________.

Abstract or User-Defined Data Types

Derived Data Types

User-Defined Data Types

Primitive Data Types

Answer explanation

Derived Data Types and User-Defined Data Types are the data types derived from primitive or built-in data types.

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

After the return statement, execution control returns to the operating system component that launched this program. Execution of the code terminates here.

Main Function Section

Function Body Section

Main Function Body Section

Standard Libraries Section

Answer explanation

After the return statement, execution control returns to the Main Function Section where the program was launched from, terminating the code execution.

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?