ComputerScience Quiz 9



Large networks are frequently broken down into manageable pieces
Called segments

Purpose of PC (Program Counter) in a Micro Processor is
a) To store address of TOS (Top of Stack)
b) To store address of next instruction to be executed.
c) Count the number of instructions.
d) To store base address of the stack.
Ans: (b) 



What action is taken when the processor under execution is interrupted by a non-mask able interrupt?
a) Processor serves the interrupt request after completing the execution of the  current instruction.
b) Processor serves the interrupt request after completing the current task.
c) Processor serves the interrupt request immediately.
d) Processor serving the interrupt request depends upon the priority of the current  task under execution.
Ans: (a)

A Transaction Manager is which of the following ?
(A) Maintains a log of transactions
(B) Maintains before and after database images
(C) Maintains appropriate concurrency control
(Ans.) All of the above

Leaves of which of the following trees are at the same level ?
(A) Binary tree
(Ans.) B-tree
(C) AVL-tree
(D) Expression tree
Which of the following TCP/IP Internet protocol is diskless machine uses to obtain its IP address from a server ?
(A) RAP
(B) RIP
(Ans.) ARP
(D) X.25


Decryption and encryption of data are the responsibility of which of the following layer ?
(A) Physical layer
(B) Data Link layer
(Ans.) Presentation layer
(D) Session layer

In which circuit switching, delivery of data is delayed because data must be and retrieved from RAM ?
(A) Space division
(Ans.) Time division
(C) Virtual
(D) Packet

#include<stdio.h>
int main()
{
int i = 1;
switch(i)
{
printf("This is c program.");
case 1:
printf("Case1");
break;
case 2:
printf("Case2");
break;
}
return 0;
}
A. Error: No default specified
B. Error: Invalid printf statement after switch statement
C. No Error and prints "Case1"
D. None of above
Output:No error Case1 is output
SHARE

About df

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment