Computer Science MCQs | Computer Science Multiple Choice Questions with Answers

Questions
1 Functions defined with class name are called as
A Inline function
B Friend function
C Constructor
D Static function

Answer: Option [C]
2 Which of the following definitions generates the same Language as L, where L = {WWR | W  {a, b}*}
A S  asb|bsa|
B S  asa|bsb|
C S  asb|bsa|asa|bsb|
D S  asb|bsa|asa|bsb

Answer: Option [B]
3 Suppose there are logn sorted lists of n logn elements each. The time complexity of producing a sorted list of all these elements is (use heap data structure)
A O (n log logn)
B  (n logn)
C  (n logn)
D  (n3/2)

Answer: Option [A]
4 Consider the program below in a hypothetical programming language which allows global variables and a choice of static or dynamic scoping int i; program Main( ) { i = 10; call f ( ); } procedure f( ) { int i = 20; call g ( ); } procedure g( ) { print i; } Let x be the value printed under static scoping and y be the value printed under dynamic scoping. Then x and y are
A x = 10, y = 20
B x = 20, y = 10
C x = 20, y = 20
D x = 10, y = 10

Answer: Option [C]
5 If the parse tree of a word w generated by a Chomsky normal form grammar has no path of length greater than i, then the word w is of length
A no greater than 2i+1
B no greater than 2i
C no greater than 2i–1
D no greater than i

Answer: Option [B]
6 The Object Modelling Technique (OMT) uses the following three kinds of model to describe a system
A Class Model, Object Model and Analysis Model
B Object Model, Dynamic Model, and Functional Model
C Class Model, Dynamic Model and Functional Model
D Object Model, Analysis Model and Dynamic Model

Answer: Option [D]
7 The factors that determine the quality of a software system are
A correctness, reliability
B efficiency, usability, maintainability
C testability, portability, accuracy, error tolerances, expandability, access control, audit
D All of the above

Answer: Option [A]
8 If a relation with a Schema R is decomposed into two relations R1 and R2 such that (R1  R 2) = R1 then which one of the following is to be satisfied for a lossless joint decomposition ( indicates functional dependency)
A (R1  R2)  R1 or R1  R2  R2
B R1  R2  R1
C R1  R2  R2
D R1  R2  R1and R1  R2  R2

Answer: Option [B]
9 Skolmization is the process of
A bringing all the quantifiers in the beginning of a formula in FDL
B removing all the universal quantifiers
C removing all the existential quantifiers
D all of the above

Answer: Option [C]
10 Which level of Abstraction describes how data are stored in the data base ?
A Physical level
B View level
C Abstraction level
D Logical level

Answer: Option [D]
11 The transform which possesses the “multi-resolution” property is
A Fourier transform
B Short-time-Fourier transform
C Wavelet transform
D Karhunen-Loere transform

Answer: Option [D]
12 Which one is a collection of templates and rules ?
A XML
B CSS
C DHTML
D XSL

Answer: Option [B]
13 A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail
A 50%
B 60%
C 10%
D 70%

Answer: Option [A]
14 Third normal form is based on the concept of ______
A Closure Dependency
B Transitive Dependency
C Normal Dependency
D Functional Dependency

Answer: Option [D]
15 If the Fourier transform of the function f(x, y) is F(m, n), then the Fourier transform of the function f(2x, 2y) is :
A 1 4 F      m 2 , n 2
B 1 4 F (2m, 2n)
C 1 4 F (m, n)
D 1 4 F      m 4 , n 4

Answer: Option [A]
16 ______ establishes information about when, why and by whom changes are made in a software.
A Software Configuration Management
B Change Control
C Version Control
D An Audit Trail

Answer: Option [D]
17 An expert system shell is an expert system without
A domain knowledge
B explanation facility
C reasoning with knowledge
D all of the above

Answer: Option [A]
18 An example of a dictionary-based coding technique is
A Run-length coding
B Huffman coding
C Predictive coding
D LZW coding

Answer: Option [B]
19 Which is the method used to retrieve the current state of a check box ?
A get State ( )
B put State ( )
C retrieve State ( )
D write State ( )

Answer: Option [C]
20 Referential integrity is directly related to
A Relation key
B Foreign key
C Primary key
D Candidate key

Answer: Option [B]