Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LIC, DE, C++ and Microprocessors

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following is the correct syntax to print a message in C++ language?

a)

cout <<"Hello world!";

b)

  Cout << Hello world! ;

c)

Out <<"Hello world!;

d)

None of the above

2.

C++ is ______________

a)

object oriented programming language

b)

procedural programming language

c)

both procedural and object-oriented programming language

d)

functional programming language

3.

Let x=2 , y=0 and k=!(x||y). What is the value of k?

a)

1

b)

0

c)

2

d)

3

4.

Let x=2 ,y=2 and k=(y>x) ? 4:6. What is the value of k?

a)

1

b)

2

c)

6

d)

4

5.

Which of the following correctly declares an array in C++?

a)

array{10};

b)

  array array[10];

c)

int array;

  

d)

int array[10];

6.

The number of possible inputs and outputs for a NAND gate are respectively......

a)

3 and 1

b)

2 and 1

c)

1 and 1

d)

All true

7.

When inputs are different; output is high - this is the logic of

a)

NOR gate

b)

NAND gate

c)

XOR gate

d)

XNOR gate

8.

The figure is a

a)

flip flop

b)

latch

c)

sequential logic circuit

d)

combinational logic circuit

9.

The complement of a sum of variable is equal to the product of complements of the variables.This statement is better known as

a)

Boolean law of addition

b)

De Morgan's first theorem

c)

De Morgan's second theorem

d)

Boolean complementary principle

10.

In a standard SOP expression,

a)

All variables in the domain appear in each product term

b)

All variables in the domain appear in non complemented form in each product term

c)

All variables in the domain appear in the total expression

d)

All variables in the domain appear in the total expression in non complemented form

11.

Pick the universal gate/ gates

a)

NOR

b)

NOT

c)

XOR

d)

XNOR

12.

How a perfect integration is achieved in op-amp?

a)

    With the aid of proper capacitor

b)

    With the aid of high gain

c)

Proper role of rate

d)

All above

e)

      None of these

13.

An op-amp can be used to generate the following wave form?

a)

Ramp

b)

Triangular

c)

Square

d)

All of these

e)

None of these

14.

The gain of a voltage follower op-amp circuit is

a)

zero

b)

one

c)

infinite

d)

cannot be predicted

15.

For the proper working of an op-amp we must have

a)

Proper feedback capacitor

b)

At least one power source

c)

Two power supplies

d)

Proper feedback resistor