c++

c++

University

22 Qs

quiz-placeholder

Similar activities

Theory CSC301 - Chapter 6 & 7

Theory CSC301 - Chapter 6 & 7

University

20 Qs

Neo Coding Round 1 Set 2

Neo Coding Round 1 Set 2

University

25 Qs

Quiz on C Fundamentals - MECH, EEE, CIVIL

Quiz on C Fundamentals - MECH, EEE, CIVIL

University

20 Qs

PHP Quiz - 1

PHP Quiz - 1

University

20 Qs

Quiz Pemrograman Lanjut 2022/2023

Quiz Pemrograman Lanjut 2022/2023

University

20 Qs

THE_COVER

THE_COVER

University

18 Qs

Hashing

Hashing

University

20 Qs

Prog Web U3

Prog Web U3

University

21 Qs

c++

c++

Assessment

Quiz

Computers

University

Hard

Used 785+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What happens if an exception is thrown in a function, but not caught?

The program continues executing and it is ignored.

The function that throws the exception is exited.

The program terminates.

The compiler will find the error and the program would not compile.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between an array and STL, Standard Template Library, array?

They are the same thing.

STL array is a dynamic array

Array size must be known at compile time but, STL array size does not.

Array is a data structure and STL array is an instance of a class.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

There can only be one catch block in a program

True

False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The compiler creates an instance of a function template in memory as soon as it encounters the template.

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When a class becomes a friend of another class they are additionally getting access to:

Private

Protected

Public

None of the above

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When a class is derived from a base class it gets access to:

Private

Protected

Private and Protected

Protected and Public

Private, Protected and Public

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a class the access specifiers are _______ by default:

Private

Protected

Public

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?