C++ Advanced Quiz

C++ Advanced Quiz

University

30 Qs

quiz-placeholder

Similar activities

Week 7-8

Week 7-8

University

30 Qs

C-Volution (Easy 2)

C-Volution (Easy 2)

University

30 Qs

C Programming MCQ Assessment

C Programming MCQ Assessment

University

30 Qs

OPP Revision Unit I & II

OPP Revision Unit I & II

University

35 Qs

Funcion print() y tipos de datos

Funcion print() y tipos de datos

University

30 Qs

THIRD ROUND BINGO

THIRD ROUND BINGO

University

25 Qs

Java Fundamentals Quiz

Java Fundamentals Quiz

University

30 Qs

LẬP TRÌNH HĐT - BÀI 8

LẬP TRÌNH HĐT - BÀI 8

University

34 Qs

C++ Advanced Quiz

C++ Advanced Quiz

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Omita Nanda

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an example of an Abstract Data Type?

Stack

Queue

int

Linked List

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An Abstract Data Type is mainly defined in terms of:

Implementation details

User-defined behavior (operations)

Compiler directives

Memory structure

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, objects are created at:

Compile time only

Run time only

Either compile or run time depending on declaration

Link time

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is FALSE about C++ classes?

A class groups data and methods together

A class is a user-defined data type

A class must always have a constructor

An object is an instance of a class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you declare a class without any access specifier in C++?

All members are public

All members are private

Compilation error

Members cannot be accessed at all

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the declaration: class A { int x; void fun(); };Here, x and fun() are by default:

private

public

protected

inaccessible

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following about local classes is correct?

They can access static variables of the function

They cannot have static data members

They cannot define methods

They cannot create objects

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?