Computer Science Question and answers
1. A virtual function is generally defined in
Ans.: Derived class
2. A Nor gate generally recognizes inputs whose bits are
Ans.: 0's
Explanation: NOR Gate
1. A virtual function is generally defined in
Ans.: Derived class
2. A Nor gate generally recognizes inputs whose bits are
Ans.: 0's
Explanation: NOR Gate
A
|
B
|
___
A+B
|
0
|
0
|
1
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
0
|
3. The output of a logic gate is 1 when all its inputs are at logic 0 then the gate is
Ans.: a NOR or an EX-NOR
Explanation:NOR Gate
A
|
B
|
___
A+B
|
0
|
0
|
1
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
0
|
EX-NOR Gate:
A
|
B
|
Ex-Nor
|
0
|
0
|
1
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
1
|
4. An optimal scheduling algorithm in terms of minimizing average waiting time of a given set of processes is
Ans.: Shortest Job First scheduling algorithm