wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Day6_Quiz_NBKR

Total questions: 10

Worksheet time: 12mins

Name
Class
Date
1.

What is abstract class in C++?

a)

Any class which is parent class

b)

Class from which any class is derived

c)

Class specifically used as a base class with atleast one virtual functions

d)

Class specifically used as a base class with atleast one pure virtual functions

2.

Which of the following constructors are provided by the C++ compiler if not defined in a class?

a)

Copy constructor

b)

Default constructor

c)

Assignment constructor

d)

All of the mentioned

3.

Two wire interface is also called as _________

a)

a) UART

b)

b) SPI

c)

c) I2C

d)

d) USART

4.

. Inter Integrated Circuit is a _____________

a)

a) Single master, single slave

b)

b) Multi master, single slave

c)

c) Single master, multi slave

d)

d) Multi master, multi slave

5.

If the Signal_A is 1 AND signal_B is 1, then set flag_B to 1, else set flag_B to 0. to check this how many test case needed

a)

3

b)

4

c)

8

d)

16

6.

MISRA is a

a)

Standards

b)

Guidelines

c)

Rules

d)

Commends

7.

What will be the output of the program given below?

a)

NULL

b)

TRUE

c)

FALSE

d)

Garbage vale

8.

Find the output of the program given below.

a)

i = -1, -i = -1

b)

i = -1, -i = 1

c)

i = 1, -i = -1

d)

i = 1, -i = 1

9.

Find the output of the program given below.

a)

4 5.0

b)

4 5

c)

Compiler error

10.

Find the output of the program given below.

a)

Compiler error

b)

Garbage value

c)

No output

d)

Null