C++ quiz (finals)

C++ quiz (finals)

University

25 Qs

quiz-placeholder

Similar activities

Advanced Excel

Advanced Excel

KG - University

20 Qs

AACS3013 Quick Revision C1-C3

AACS3013 Quick Revision C1-C3

University

20 Qs

Recap C++

Recap C++

University

20 Qs

C++ Basic Programming Elements

C++ Basic Programming Elements

University

28 Qs

Java Basic - Core

Java Basic - Core

University

20 Qs

Basic C++ Programming Questions

Basic C++ Programming Questions

University

20 Qs

Pascal Quiz

Pascal Quiz

University

20 Qs

TECHWARZ-1

TECHWARZ-1

University

20 Qs

C++ quiz (finals)

C++ quiz (finals)

Assessment

Quiz

Computers

University

Medium

Created by

Wilfredo Jr.

Used 8+ times

FREE Resource

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.

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?