Question 1 of 80Foundations of algorithm analysis
Which property requires that an algorithm must terminate after a finite number of steps?
ADefiniteness
BFiniteness
CEffectiveness
DInput
Answer is hidden
Question 2 of 80Foundations of algorithm analysis
The RAM model of computation assumes each elementary operation takes:
AO(n) time
BO(log n) time
CConstant time, O(1)
DO(n log n) time
Answer is hidden
Question 3 of 80Foundations of algorithm analysis
Which case describes the maximum running time of an algorithm over all inputs of size n?
ABest case
BAverage case
CWorst case
DAmortized case
Answer is hidden
Question 4 of 80Foundations of algorithm analysis
Which asymptotic notation represents an upper bound on an algorithm's growth rate?
ABig-Omega
BBig-Theta
CBig-O
DLittle-o only
Answer is hidden
Question 5 of 80Foundations of algorithm analysis
Big-Theta notation is used when an algorithm's running time is:
ABounded only above
BBounded only below
CBounded both above and below (tightly)
DUnbounded
Answer is hidden
Question 6 of 80Foundations of algorithm analysis
A recurrence relation such as T(n) = 2T(n/2) + n typically describes the running time of which kind of algorithm?
AAn iterative algorithm only
BA recursive, divide-and-conquer algorithm
CA greedy algorithm
DA brute-force search
Answer is hidden
Question 7 of 80Foundations of algorithm analysis
Which method for solving recurrences involves guessing a solution and proving it by induction?
ARecursion tree method
BSubstitution method
CMaster's theorem
DBig-O method
Answer is hidden
Question 8 of 80Foundations of algorithm analysis
The Master Theorem applies to recurrences of the form:
AT(n) = T(n-1) + n
BT(n) = aT(n/b) + f(n)
CT(n) = T(n/2) * T(n/2)
DT(n) = n!
Answer is hidden
Question 9 of 80Foundations of algorithm analysis
In the recursion tree method, the total running time is obtained by:
ATaking the cost of the root node only
BSumming the costs across all levels of the recursion tree
CIgnoring all leaf nodes
DMultiplying the height by a constant only
Answer is hidden
Question 10 of 80Foundations of algorithm analysis
Which of these best describes 'space complexity'?
AThe time an algorithm takes to run
BThe extra memory an algorithm uses as a function of input size
CThe number of lines of code in an algorithm
DThe number of CPU cores used
Answer is hidden
Question 11 of 80Divide and conquer algorithms
Which of the following is NOT one of the three steps of divide and conquer?
ADivide
BConquer
CCombine
DMemoize
Answer is hidden
Question 12 of 80Divide and conquer algorithms
Binary Search requires the input array to be:
AUnsorted
BSorted
CA linked list only
DA heap
Answer is hidden
Question 13 of 80Divide and conquer algorithms
The time complexity of Binary Search is:
AO(n)
BO(n log n)
CO(log n)
DO(nยฒ)
Answer is hidden
Question 14 of 80Divide and conquer algorithms
Merge Sort's worst-case time complexity is:
AO(n)
BO(n log n)
CO(nยฒ)
DO(log n)
Answer is hidden
Question 15 of 80Divide and conquer algorithms
Quick Sort's worst-case time complexity of O(nยฒ) typically occurs when:
AThe pivot always splits the array evenly
BThe pivot repeatedly produces very unbalanced partitions
CThe array is very small
DRandomized pivoting is used
Answer is hidden
Question 16 of 80Divide and conquer algorithms
Randomized Quick Sort improves reliability mainly by:
AAlways sorting in O(n) time
BChoosing the pivot randomly to avoid worst-case behavior on adversarial input
CEliminating the need for partitioning
DUsing extra O(n) memory
Answer is hidden
Question 17 of 80Divide and conquer algorithms
In a Max-Heap, the relationship between a parent node and its children is:
AParent โค children
BParent โฅ children
CParent = children
DNo defined relationship
Answer is hidden
Question 18 of 80Divide and conquer algorithms
Heap Sort's overall time complexity is:
AO(n)
BO(n log n)
CO(nยฒ)
DO(log n)
Answer is hidden
Question 19 of 80Divide and conquer algorithms
Which algorithm guarantees finding the i-th order statistic in worst-case linear time?
ABrute-force sort-then-select
BRandomized selection
CMedian-of-Medians algorithm
DBinary search
Answer is hidden
Question 20 of 80Divide and conquer algorithms
What is the median of a set of numbers?
AThe largest order statistic
BThe smallest order statistic
CThe middle order statistic
DThe average of all elements
Answer is hidden
Question 21 of 80Dynamic programming
Dynamic Programming is applicable to a problem mainly when it exhibits:
ARandom subproblems only
BOptimal substructure and overlapping subproblems
CNo recursive structure at all
DOnly a greedy choice property
Answer is hidden
Question 22 of 80Dynamic programming
Unlike Dynamic Programming, a Greedy algorithm:
AAlways guarantees a globally optimal solution
BMakes a locally optimal choice at each step without reconsidering it, which may not yield a global optimum
CNever terminates
DRequires exponential time always
Answer is hidden
Question 23 of 80Dynamic programming
The main advantage of Dynamic Programming over plain recursion is that DP:
AUses less code
BAvoids recomputing the same subproblems by storing their results
CNever uses extra memory
DCannot solve overlapping subproblems
Answer is hidden
Question 24 of 80Dynamic programming
The Matrix Chain Multiplication problem aims to:
ASort a chain of matrices
BFind the optimal order of multiplication that minimizes the number of scalar multiplications
CInvert a matrix
DFind the determinant of a matrix
Answer is hidden
Question 25 of 80Dynamic programming
The Edit Distance (String Editing) problem computes the minimum number of which operations to convert one string into another?
AOnly insertions
BOnly deletions
CInsertions, deletions, and replacements
DOnly swaps
Answer is hidden
Question 26 of 80Dynamic programming
The time complexity of the 0/1 Knapsack DP solution, for n items and capacity W, is:
AO(n)
BO(nW)
CO(nยฒ)
DO(2โฟ) always
Answer is hidden
Question 27 of 80Dynamic programming
The Floyd-Warshall algorithm is used to find:
AThe single-source shortest path only
BShortest paths between every pair of vertices
CThe minimum spanning tree
DThe maximum flow in a network
Answer is hidden
Question 28 of 80Dynamic programming
The time complexity of the Floyd-Warshall algorithm is:
AO(V)
BO(Vยฒ)
CO(Vยณ)
DO(V log V)
Answer is hidden
Question 29 of 80Dynamic programming
Solving the Travelling Salesman Problem with DP (Held-Karp/bitmasking) has time complexity:
AO(n!)
BO(n log n)
CO(nยฒ * 2โฟ)
DO(nยณ)
Answer is hidden
Question 30 of 80Dynamic programming
Memoization is best described as:
AAlways solving a problem from scratch each time
BCaching the results of subproblems so repeated calls can be answered instantly
CA greedy selection technique
DA sorting technique
Answer is hidden
Question 31 of 80Loading, linker and macro processor
Which basic loader function adjusts address-dependent parts of a program so it can run at a different memory location than originally assumed?
AAllocation
BRelocation
CLinking
DLoading
Answer is hidden
Question 32 of 80Loading, linker and macro processor
An Absolute Loader loads a program:
AAt any available memory address, chosen at run time
BOnly at one fixed, predetermined address
COnly after dynamic linking
DOnly into ROM
Answer is hidden
Question 33 of 80Loading, linker and macro processor
A Bootstrap Loader is typically used to:
ACompile source code
BLoad the operating system or a larger program when the machine starts
CPerform dynamic linking of shared libraries
DSearch external libraries
Answer is hidden
Question 34 of 80Loading, linker and macro processor
The External Symbol Table (ESTAB) used by a linking loader records:
AThe addresses assigned to external symbols across modules
BThe contents of ROM
CCache replacement statistics
DThe CPU's register values
Answer is hidden
Question 35 of 80Loading, linker and macro processor
Automatic Library Search is a feature that allows the loader to:
AIgnore any unresolved external references
BAutomatically find and include library routines needed to resolve external references
CDelete unused libraries
DCompile the program from scratch
Answer is hidden
Question 36 of 80Loading, linker and macro processor
A Linkage Editor differs from a dynamic linker mainly because it:
ALinks external references only at run time
BPerforms linking before execution time and stores the fully linked executable
CNever resolves external references
DRequires no object files at all
Answer is hidden
Question 37 of 80Loading, linker and macro processor
Dynamic linking postpones linking of external references until:
AAssembly time
BCompile time only
CLoad time or run time
DNever โ it avoids linking entirely
Answer is hidden
Question 38 of 80Loading, linker and macro processor
A key advantage of dynamic linking over static linking (via a linkage editor) is that it:
AAlways produces a smaller number of files
BSaves memory/disk space by sharing one loaded copy of a library among multiple programs
CEliminates the need for a loader entirely
DWorks only with absolute loaders
Answer is hidden
Question 39 of 80Loading, linker and macro processor
Which linker combines .OBJ files into a .EXE file in the MS-DOS environment?
ASunOS linker
BMS-DOS linker
CLinkage editor for Unix only
DBootstrap loader
Answer is hidden
Question 40 of 80Loading, linker and macro processor
SunOS's dynamic linking mechanism relies on which file type?
A.EXE files
B.OBJ files only
CShared objects (.so files)
D.COM files
Answer is hidden
Question 41 of 80Macro processor basic
A macro is best described as:
AA hardware interrupt
BA named block of source code that can be invoked and expanded elsewhere
CA type of loader
DA memory management unit
Answer is hidden
Question 42 of 80Macro processor basic
Which macro-processor table stores the actual text/body of each macro's definition?
AMacro Name Table (MNT)
BMacro Definition Table (MDT)
CArgument List Array (ALA)
DExternal Symbol Table (ESTAB)
Answer is hidden
Question 43 of 80Macro processor basic
The Argument List Array (ALA) is used to:
AStore macro names only
BHold the actual argument values supplied in a macro call for substitution during expansion
CStore the object code
DList all external symbols
Answer is hidden
Question 44 of 80Macro processor basic
Generation of unique labels in macro expansion is needed mainly to:
ASpeed up compilation
BAvoid duplicate-label errors when a macro is expanded multiple times
CReduce memory usage
DEnable dynamic linking
Answer is hidden
Question 45 of 80Macro processor basic
Keyword macro parameters differ from positional parameters because they:
AMust always appear in a fixed order
BAre referenced by name and can be supplied in any order, often with defaults
CCannot have default values
DOnly work in ANSI C
Answer is hidden
Question 46 of 80Macro processor basic
Conditional macro expansion allows a macro to:
ANever generate any code
BGenerate different code depending on specified conditions using IF/ELSE/ENDIF-like directives
COnly be expanded once per program
DBypass the macro processor entirely
Answer is hidden
Question 47 of 80Macro processor basic
A macro processor that can expand a macro which itself invokes another macro (or itself) supports:
AConditional expansion only
BRecursive macro expansion
CKeyword parameters only
DDynamic linking
Answer is hidden
Question 48 of 80Macro processor basic
A general-purpose macro processor is characterized by being:
ATied to one specific programming language
BIndependent of any specific programming language, since it performs textual substitution
CUsable only with MASM
DUsable only for network programming
Answer is hidden
Question 49 of 80Macro processor basic
Which software provides the macro processing used in ANSI C, via directives like #define?
AMASM
BThe C preprocessor
CThe linkage editor
DThe bootstrap loader
Answer is hidden
Question 50 of 80Macro processor basic
AA macro processor built into the Microsoft Macro Assembler
BA dynamic linking mechanism
CA type of DMA controller
DAn operating system
Answer is hidden
Question 51 of 80Network Programming
Which protocol is connection-oriented and guarantees reliable, ordered delivery?
AUDP
BIP
CTCP
DNone of these
Answer is hidden
Question 52 of 80Network Programming
Which protocol offers low overhead but no guarantee of delivery or ordering?
ATCP
BUDP
CSCTP
DIP with TCP
Answer is hidden
Question 53 of 80Network Programming
SCTP is notable for supporting:
AOnly single-stream, single-homed connections
BMulti-streaming and multi-homing
CNo reliability at all
DOnly UDP-style delivery
Answer is hidden
Question 54 of 80Network Programming
The TCP connection setup process is commonly known as the:
A4-way handshake
B3-way handshake
C2-way handshake
D1-way handshake
Answer is hidden
Question 55 of 80Network Programming
Which socket function marks a socket as ready to accept incoming connections?
Aconnect()
Bbind()
Clisten()
Dsend()
Answer is hidden
Question 56 of 80Network Programming
Which function converts a 16-bit value from host byte order to network byte order?
Antohs()
Bhtons()
Chtonl()
Dntohl()
Answer is hidden
Question 57 of 80Network Programming
A concurrent server typically handles multiple clients by:
AProcessing them strictly one at a time
BForking a new process or spawning a thread per connection
CRefusing all but one connection
DIgnoring incoming connections
Answer is hidden
Question 58 of 80Network Programming
Which I/O model uses select()/poll() to monitor multiple sockets from a single thread?
ABlocking I/O
BNon-blocking I/O
CI/O Multiplexing
DAsynchronous I/O
Answer is hidden
Question 59 of 80Network Programming
In which I/O model does the kernel perform the entire operation, including copying data, before notifying the process?
ABlocking I/O
BNon-blocking I/O
CSignal-driven I/O
DAsynchronous I/O
Answer is hidden
Question 60 of 80Network Programming
Winsock, the Windows Sockets API, is implemented as a:
AKernel module written in assembly only
BDLL (e.g. WS2โโ.DLL)
CHardware chip
DBIOS extension
Answer is hidden
Question 61 of 80Computer Graphics & AI
The activation function used in a Hopfield Network is:
ASigmoid
BReLU
CTanh
DSign (Signum)
Answer is hidden
Question 62 of 80Computer Graphics & AI
Machine learning using labelled training data (input-output pairs) is called:
ASupervised learning
BUnsupervised learning
CReinforcement learning
DSemi-supervised learning
Answer is hidden
Question 63 of 80Computer Graphics & AI
In an AI agent, which component carries out actions on the environment?
ASensors
BKnowledge base
CActuators
DInference engine
Answer is hidden
Question 64 of 80Computer Graphics & AI
Which UML diagram describes the vocabulary (classes and relationships) of a system?
ASequence Diagram
BClass Diagram
CUse Case Diagram
DActivity Diagram
Answer is hidden
Question 65 of 80Computer Graphics & AI
To translate a circle to a new position in 2D graphics, what must be translated?
AThe centre point only
BEvery pixel on the circumference
CThe bounding box
DThe radius
Answer is hidden
Question 66 of 80Computer Graphics & AI
In 2D scaling, if both scale factors sx < 1 and sy < 1, the object:
AGrows larger
BShrinks (becomes smaller)
CReflects about the origin
DStays the same size
Answer is hidden
Question 67 of 80Computer Graphics & AI
How many distinct reflection planes exist in 3D space?
Answer is hidden
Question 68 of 80Computer Graphics & AI
The complexity of an Artificial Neural Network primarily depends on:
ANumber of input nodes only
BTraining data size only
CNumber of hidden layers only
DAll of the above (architecture, data, training)
Answer is hidden
Question 69 of 80Computer Graphics & AI
A crossword-puzzle solving environment is best described as:
APartially observable, multi-agent, stochastic
BFully observable, single-agent, deterministic
CPartially observable, single-agent, stochastic
DFully observable, multi-agent, deterministic
Answer is hidden
Question 70 of 80Computer Graphics & AI
In an expert system, the component that stores all facts, rules, and domain knowledge is the:
AKnowledge Base
BInference Engine
CWorking Memory
DUser Interface
Answer is hidden
Question 71 of 80Computer Graphics & AI
MYCIN, the medical expert system, used how many rules and which reasoning strategy?
A500 rules, Backward chaining
B500 rules, Forward chaining
C200 rules, Backward chaining
D1000 rules, Forward chaining
Answer is hidden
Question 72 of 80Computer Graphics & AI
Which concept is central to Fuzzy Logic?
ABoolean truth values
BProbability distributions
CCrisp set membership
DMembership Function (degree of truth 0โ1)
Answer is hidden
Question 73 of 80Computer Graphics & AI
The A* search algorithm is NOT admissible when:
AThe heuristic overestimates the true cost to goal
BThe heuristic underestimates the true cost
CThe heuristic equals zero
DThe search space is finite
Answer is hidden
Question 74 of 80Computer Graphics & AI
Greedy Best-First Search selects the next node to expand based on:
Ag(n) only (cost from start)
Bg(n) + h(n)
Ch(n) only (estimated cost to goal)
DBreadth from root
Answer is hidden
Question 75 of 80Computer Graphics & AI
The key components of a search problem in AI are:
AInitial state, goal state, and operators (transition function)
BStart node, heuristic function, and path cost only
CDatabase, inference engine, and user interface
DAgent, environment, and reward function
Answer is hidden
Question 76 of 80Computer Graphics & AI
The transformation matrix [[1,0,0],[0,5,0],[0,0,2]] represents:
ATranslation
BScaling
CRotation
DShearing
Answer is hidden
Question 77 of 80Computer Graphics & AI
ADirect Drawing Algorithm
BDigital Differential Analyzer
CDynamic Display Adapter
DDiscrete Drawing Approach
Answer is hidden
Question 78 of 80Computer Graphics & AI
The OOAD methodology that features macro and micro development processes is:
ABooch Method
BRumbaugh OMT
CJacobson OOSE
DRUP
Answer is hidden
Question 79 of 80Computer Graphics & AI
The NLP processing pipeline in correct order is:
ATokenization โ POS Tagging โ Parsing โ Semantic Analysis
BParsing โ Tokenization โ Semantic Analysis โ POS Tagging
CSemantic Analysis โ Tokenization โ POS Tagging โ Parsing
DPOS Tagging โ Tokenization โ Parsing โ Semantic Analysis
Answer is hidden
Question 80 of 80Computer Graphics & AI
The Turing Test extension that requires a robot to interact physically with the world is:
AChinese Room Test
BTotal Turing Test
CWinograd Schema Test
DCAPTCHA
Answer is hidden