Computer Science MCQs | Computer Science Multiple Choice Questions with Answers

Questions
1 What is the size (in terms of bits) of Header length field in IPV4 header ?
A 2
B 4
C 8
D 16

Answer: Option [A]
2 ______ is sometimes said to be object oriented, because the only way to manipulate kernel objects is by invoking methods on their handles.
A Windows NT
B Windows XP
C Windows VISTA
D Windows 95/98

Answer: Option [B]
3 A user level process in Unix traps the signal sent on a Ctrl + C input and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl + C input is given to this process, what is the mode in which the signal handling routine executes ?
A User mode
B Kernel mode
C Superuser mode
D Privileged mode

Answer: Option [D]
4 A CPU generally handles an interrupt by executing an interrupt service routine
A as soon as an interrupt is raised
B by checking the interrupt register at the end of fetch cycle
C by checking the interrupt register after finishing the executing the current instruction
D by checking the interrupt register at fixed time intervals

Answer: Option [A]
5 ______ is sometimes said to be object oriented, because the only way to manipulate kernel objects is by invoking methods on their handles.
A Windows NT
B Windows XP
C Windows VISTA
D Windows 95/98

Answer: Option [B]
6 Radio signals generally propagate according to the following mechanisms:
A Modulation, Amplification, Scattering
B Reflection, Diffraction, Scattering
C Amplification, Diffraction, Modulation
D Reflection, Amplification, Diffraction

Answer: Option [B]
7 A user level process in Unix traps the signal sent on a Ctrl + C input and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl + C input is given to this process, what is the mode in which the signal handling routine executes ?
A User mode
B Kernel mode
C Superuser mode
D Privileged mode

Answer: Option [B]
8 A CPU generally handles an interrupt by executing an interrupt service routine
A as soon as an interrupt is raised
B by checking the interrupt register at the end of fetch cycle
C by checking the interrupt register after finishing the executing the current instruction
D by checking the interrupt register at fixed time intervals

Answer: Option [B]
9 Radio signals generally propagate according to the following mechanisms:
A Modulation, Amplification, Scattering
B Reflection, Diffraction, Scattering
C Amplification, Diffraction, Modulation
D Reflection, Amplification, Diffraction

Answer: Option [B]
10 If a and b are the end points of a line, then which one of the following is true ?
A If both end points are left, right, above or below the window, the line is invisible
B If both end points are left, right, above or below the window, the line is completely visible
C If both end points are left, right, above or below the window, the line is trivially visible
D If both end points are left, right, above or below the window, the line is trivially invisible

Answer: Option [B]
11 If the period of a signal is 1000 ms, then what is its frequency in kilohertz ?
A 10–3 KHz
B 10–2 KHz
C 10–1 KHz
D 1 KHz

Answer: Option [A]
12 If a and b are the end points of a line, then which one of the following is true ?
A If both end points are left, right, above or below the window, the line is invisible
B If both end points are left, right, above or below the window, the line is completely visible
C If both end points are left, right, above or below the window, the line is trivially visible
D If both end points are left, right, above or below the window, the line is trivially invisible

Answer: Option [B]
13 Consider the methods used by processes P1 and P2 for accessing their critical sections. The initial values of shared Boolean variables S1 and S2 are randomly assigned, P1 P2 while (S1 = = S2); while (S1 = = S2); critical section critical section S1 = S2; S1 = S2; Which one of the following statements describes the properties achieved ?
A Mutual exclusion but not progress
B Progress but not mutual exclusion
C Progress but not mutual exclusion
D Both mutual exclusion and progress

Answer: Option [D]
14 If the period of a signal is 1000 ms, then what is its frequency in kilohertz ?
A 10–3 KHz
B 10–2 KHz
C 10–1 KHz
D 1 KHz

Answer: Option [A]
15 Let a * H and b * H be two cosets of H. (i) Either a * H and b * H are disjoint (ii) a * H and b * H are identical Then,
A only (i) is true
B only (ii) is true
C (i) or (ii) is true
D (i) and (ii) is false

Answer: Option [B]
16 HTML is defined using SGML – an _______ standard, information processing-text and office systems (SGML) for text information processing.
A ISO – 8878
B ISO – 8879
C ISO – 8880
D ISO – 8881

Answer: Option [B]
17 What is the meaning of ‘Hibernate’ in Windows XP/Windows 7 ?
A Restart the computers in safe mode
B Restart the computers in normal mode
C Shutdown the computer terminating all the running applications
D Shutdown the computer without closing the running applications

Answer: Option [B]
18 A computer system supports 32 bit virtual address as well as 32 bit physical addresses. Since the virtual address space is of same size as that of physical address space, if we want to get rid of virtual memory, which one of the following is true ?
A Efficient implementation of multiuser support is no longer possible
B The processor cache can be made more efficient
C Hardware support for memory management is not needed
D CPU scheduling can be made more efficient

Answer: Option [B]
19 Assume that we have constructor functions for both base class and derived class. Now consider the declaration in main( ). Base * P = New Derived; in what sequence will the constructor be called ?
A Derived class constructor followed by Base class constructor
B Base class constructor followed by derived class constructor
C Base class constructor will not be called
D Derived class constructor will not be called

Answer: Option [B]
20 In which file the compiler manage the various objects, which are used in windows programming ?
A Control File
B Binary File
C Text File
D Obj File

Answer: Option [B]