Question 1 of 748Ch 1 · Introduction to Information Technology
Who is regarded as the 'Father of the Computer'?
AAlan Turing
BCharles Babbage
CJohn von Neumann
DBlaise Pascal
Answer is hidden
Question 2 of 748Ch 1 · Introduction to Information Technology
Which characteristic means a computer performs repetitive tasks without fatigue?
AAccuracy
BVersatility
CDiligence
DAutomation
Answer is hidden
Question 3 of 748Ch 1 · Introduction to Information Technology
The stored-program concept was introduced with which machine?
AENIAC
BEDVAC
CAbacus
DPascaline
Answer is hidden
Question 4 of 748Ch 1 · Introduction to Information Technology
Which unit of the CPU performs arithmetic and logical operations?
AControl Unit
BALU
CRegister
DInput Unit
Answer is hidden
Question 5 of 748Ch 1 · Introduction to Information Technology
Second-generation computers used which technology?
AVacuum tubes
BTransistors
CIntegrated Circuits
DMicroprocessors
Answer is hidden
Question 6 of 748Ch 1 · Introduction to Information Technology
Which type of computer combines features of analog and digital computers?
AMainframe
BMinicomputer
CHybrid computer
DSupercomputer
Answer is hidden
Question 7 of 748Ch 1 · Introduction to Information Technology
Which is the fastest and most powerful category of computer?
AMicrocomputer
BMinicomputer
CMainframe
DSupercomputer
Answer is hidden
Question 8 of 748Ch 1 · Introduction to Information Technology
Integrated Circuits (ICs) characterize which generation of computers?
Answer is hidden
Question 9 of 748Ch 1 · Introduction to Information Technology
A computer is said to have 'no IQ' because it:
ACannot store data
BOnly executes given instructions
CCannot perform arithmetic
DWorks only with numbers
Answer is hidden
Question 10 of 748Ch 1 · Introduction to Information Technology
Which unit directs and coordinates the operations of all other units?
AALU
BMemory Unit
CControl Unit
DOutput Unit
Answer is hidden
Question 11 of 748Ch 1 · Storage system
Which type of memory loses its content when power is switched off?
AROM
BRAM
CEEPROM
DFlash memory
Answer is hidden
Question 12 of 748Ch 1 · Storage system
Which ROM type is erased using ultraviolet light?
Answer is hidden
Question 13 of 748Ch 1 · Storage system
Magnetic tape is an example of which access method?
ADirect access
BRandom access
CSequential access
DIndexed access
Answer is hidden
Question 14 of 748Ch 1 · Storage system
Which storage device uses a laser beam to read and write data?
AHard disk
BMagnetic tape
COptical disk (CD/DVD)
DRAM
Answer is hidden
Question 15 of 748Ch 1 · Storage system
Which of the following is non-volatile memory?
Answer is hidden
Question 16 of 748Ch 1 · Storage system
AOnly once, mechanically
BUsing ultraviolet light
CElectrically, byte-by-byte
DBy formatting the hard disk
Answer is hidden
Question 17 of 748Ch 1 · Storage system
A hard disk provides which type of data access?
ASequential access only
BDirect/Random access
CTape access
DWrite-once access
Answer is hidden
Question 18 of 748Ch 1 · Storage system
Which device is a solid-state secondary storage device with no moving parts?
AMagnetic tape
BHard disk
CFlash/USB drive
DZip drive
Answer is hidden
Question 19 of 748Ch 1 · Storage system
APrimary Read Only Memory
BProgrammable Read Only Memory
CProtected Read Only Memory
DProcess Read Only Memory
Answer is hidden
Question 20 of 748Ch 1 · Storage system
Compared to secondary storage, primary storage is generally:
ASlower and cheaper
BFaster and more expensive per byte
CNon-volatile and huge in capacity
DOnly used for backups
Answer is hidden
Question 21 of 748Ch 1 · Software
Which of the following is an example of system software?
AMS Word
BOperating System
CMS Excel
DPhotoshop
Answer is hidden
Question 22 of 748Ch 1 · Software
Which programming language level uses only 0s and 1s?
AHigh-level language
BAssembly language
CMachine language
DFourth-generation language
Answer is hidden
Question 23 of 748Ch 1 · Software
Assembly language programs require which translator to run?
ACompiler
BInterpreter
CAssembler
DLinker only
Answer is hidden
Question 24 of 748Ch 1 · Software
Which is the main advantage of a high-level language?
AFastest execution speed
BDirectly understood by hardware
CEasy to write, read, and machine-independent
DNo need for translation
Answer is hidden
Question 25 of 748Ch 1 · Software
Which software category includes antivirus and disk cleanup tools?
AApplication software
BUtility programs
CPresentation software
DDBMS software
Answer is hidden
Question 26 of 748Ch 1 · Software
Which application software is used to organize data in rows and columns with formulas?
AWord processor
BSpreadsheet
CPresentation software
DGraphics software
Answer is hidden
Question 27 of 748Ch 1 · Software
A translator that converts an entire high-level program into machine code before execution is a:
ACompiler
BInterpreter
CAssembler
DLinker
Answer is hidden
Question 28 of 748Ch 1 · Software
Which is an example of DBMS software?
AMS PowerPoint
BMS Paint
COracle
DNotepad
Answer is hidden
Question 29 of 748Ch 1 · Software
Software that instructs hardware and provides a platform for other programs to run is called:
AApplication software
BOperating System
CUtility software
DFirmware
Answer is hidden
Question 30 of 748Ch 1 · Software
Which is a disadvantage of machine language?
AIt runs slowly
BIt needs a compiler
CIt is very hard to write and debug
DIt is machine-independent
Answer is hidden
Question 31 of 748Ch 1 · Computer networks
How many layers does the OSI reference model have?
Answer is hidden
Question 32 of 748Ch 1 · Computer networks
Which OSI layer is responsible for logical addressing and routing?
AData Link
BNetwork
CTransport
DSession
Answer is hidden
Question 33 of 748Ch 1 · Computer networks
The TCP/IP model condenses the OSI model into how many layers?
Answer is hidden
Question 34 of 748Ch 1 · Computer networks
Which device forwards data based only on broadcasting to all ports, with no intelligence?
ASwitch
BRouter
CHub
DBridge
Answer is hidden
Question 35 of 748Ch 1 · Computer networks
A Router operates at which layer of the OSI model?
APhysical
BData Link
CNetwork
DTransport
Answer is hidden
Question 36 of 748Ch 1 · Computer networks
Which of the following is a guided transmission medium?
ARadio waves
BMicrowaves
CFiber-optic cable
DInfrared
Answer is hidden
Question 37 of 748Ch 1 · Computer networks
A firewall is primarily used to:
AIncrease internet speed
BFilter network traffic for security
CConvert digital signals to analog
DStore backup data
Answer is hidden
Question 38 of 748Ch 1 · Computer networks
In asymmetric cryptography, encryption and decryption use:
AThe same single key
BA public key and a private key pair
CNo key at all
DOnly a private key
Answer is hidden
Question 39 of 748Ch 1 · Computer networks
Which OSI layer deals with framing and MAC addressing?
APhysical
BData Link
CNetwork
DApplication
Answer is hidden
Question 40 of 748Ch 1 · Computer networks
A Denial of Service (DoS) attack primarily aims to:
ASteal encryption keys
BMake a service unavailable to legitimate users
CPhysically damage hardware
DSpeed up network traffic
Answer is hidden
Question 41 of 748Ch 1 · Data communication
Which communication mode allows data to flow in both directions but not simultaneously?
ASimplex
BHalf-duplex
CFull-duplex
DBroadcast
Answer is hidden
Question 42 of 748Ch 1 · Data communication
A modem's main function is to:
AAmplify digital signals only
BConvert digital signals to analog and back
CStore network data
DFilter viruses
Answer is hidden
Question 43 of 748Ch 1 · Data communication
Which network type covers an area as large as a country or continent?
Answer is hidden
Question 44 of 748Ch 1 · Data communication
In which LAN topology are all devices connected to a single central cable?
Answer is hidden
Question 45 of 748Ch 1 · Data communication
Which topology becomes completely non-functional if the central hub fails?
Answer is hidden
Question 46 of 748Ch 1 · Data communication
A telephone conversation is an example of which communication mode?
ASimplex
BHalf-duplex
CFull-duplex
DNone of these
Answer is hidden
Question 47 of 748Ch 1 · Data communication
Which topology connects every node to every other node directly?
Answer is hidden
Question 48 of 748Ch 1 · Data communication
Bandwidth of a communication channel refers to:
AThe physical length of the cable
BIts maximum data-carrying capacity/frequency range
CThe number of computers connected
DThe cost of the medium
Answer is hidden
Question 49 of 748Ch 1 · Data communication
FTP is a protocol primarily used for:
ASending email
BTransferring files between computers
CBrowsing web pages
DVideo conferencing
Answer is hidden
Question 50 of 748Ch 1 · Data communication
A PAN (Personal Area Network) typically covers:
AA whole city
BA country
CA few meters around a single person
DA continent
Answer is hidden
Question 51 of 748Ch 1 · Business data processing
In the data storage hierarchy, which is the smallest unit?
Answer is hidden
Question 52 of 748Ch 1 · Business data processing
A group of 8 bits is commonly called a:
AField
BByte
CRecord
DNibble
Answer is hidden
Question 53 of 748Ch 1 · Business data processing
A group of related fields is called a:
AFile
BRecord
CDatabase
DByte
Answer is hidden
Question 54 of 748Ch 1 · Business data processing
Which file holds relatively permanent data that is updated periodically?
ATransaction file
BReport file
CMaster file
DSort file
Answer is hidden
Question 55 of 748Ch 1 · Business data processing
Which data organization method allows both sequential and direct access using an index?
ASequential organization
BDirect/Random organization
CIndexed Sequential organization (ISAM)
DHierarchical organization
Answer is hidden
Question 56 of 748Ch 1 · Business data processing
Which file type contains day-to-day data used to update the master file?
ABackup file
BTransaction file
CSort file
DMaster file
Answer is hidden
Question 57 of 748Ch 1 · Business data processing
A group of related records is called a:
Answer is hidden
Question 58 of 748Ch 1 · Business data processing
Which file utility combines two sorted files into one sorted file?
ACopy
BMerge
CRename
DCompress
Answer is hidden
Question 59 of 748Ch 1 · Business data processing
A backup file is primarily used for:
AFaster processing
BRecovery in case the original file is lost or damaged
CReducing file size
DSorting records
Answer is hidden
Question 60 of 748Ch 1 · Business data processing
Which data organization method offers the fastest access to any individual record?
ASequential organization
BDirect/Random organization
CTape-based organization
DBackup organization
Answer is hidden
Question 61 of 748Ch 1 · Basic Electrical & Electronics
When a cylinder is unrolled (opened in rope form), what shape is formed?
AInvolute
BHelix
CCycloid
DRectangle
Answer is hidden
Question 62 of 748Ch 1 · Basic Electrical & Electronics
How many transistors does a class B push-pull amplifier use?
Answer is hidden
Question 63 of 748Ch 1 · Basic Electrical & Electronics
In which region does a class B amplifier operate?
ASaturation
BCut-off
CActive
DLinear
Answer is hidden
Question 64 of 748Ch 1 · Basic Electrical & Electronics
Which quantity remains constant (same) throughout a series circuit?
AVoltage
BCurrent
CResistance
DPower
Answer is hidden
Question 65 of 748Ch 1 · Basic Electrical & Electronics
In a star (Y) connected three-phase system, what is the relationship between line voltage (Vₗ) and phase voltage (Vₚₕ)?
AVₗ = Vₚₕ
BVₗ = √3 × Vₚₕ
CVₗ = Vₚₕ / √3
DVₗ = 3 × Vₚₕ
Answer is hidden
Question 66 of 748Ch 1 · Basic Electrical & Electronics
What is the primary advantage of CMOS logic technology?
AHighest switching speed
BMinimum power consumption
CHighest noise margin
DMaximum fan-out
Answer is hidden
Question 67 of 748Ch 1 · Basic Electrical & Electronics
What type of feedback do oscillators use to sustain oscillations?
ANegative
BPositive
CZero
DMixed
Answer is hidden
Question 68 of 748Ch 1 · Basic Electrical & Electronics
Which theorem gives the condition for maximum power transfer from a source to a load?
ANorton's Theorem
BThevenin's Theorem
CMaximum Power Transfer Theorem
DSuperposition Theorem
Answer is hidden
Question 69 of 748Ch 1 · Basic Electrical & Electronics
According to Ohm's Law, which relationship is correct?
ACurrent = Voltage / Resistance
BResistance = Voltage × Current
CVoltage = Current / Resistance
DPower = Voltage + Current
Answer is hidden
Question 70 of 748Ch 1 · Basic Electrical & Electronics
Three equal resistors in series dissipate 10 W. How much power do they dissipate when connected in parallel (same supply voltage)?
Answer is hidden
Question 71 of 748Ch 1 · Basic Electrical & Electronics
A semiconductor is primarily used for:
AStoring electrical energy
BConverting AC to DC
CControlling electrical current
DAmplifying magnetic fields
Answer is hidden
Question 72 of 748Ch 1 · Basic Electrical & Electronics
Two copper wires of the same length have cross-sectional area ratio 1 : 4. What is the ratio of their resistances (small : large)?
Answer is hidden
Question 73 of 748Ch 1 · Basic Electrical & Electronics
A wire has resistance 40 Ω. Another wire of the same length has 4× the cross-sectional area. What is the resistance of the second wire?
Answer is hidden
Question 74 of 748Ch 1 · Basic Electrical & Electronics
The Superposition Theorem is NOT applicable to which type of circuit analysis?
APower calculations
BVoltage calculations
CCurrent calculations
DResistive circuits
Answer is hidden
Question 75 of 748Ch 1 · Basic Electrical & Electronics
The current through a capacitor is known as:
AConduction current
BLeakage current
CDisplacement current
DEddy current
Answer is hidden
Question 76 of 748Ch 1 · Basic Electrical & Electronics
A bridge rectifier operating at 50 Hz produces an output of:
A50 Hz pulsating DC
B100 Hz pulsating DC
C25 Hz pulsating DC
DPure DC
Answer is hidden
Question 77 of 748Ch 1 · Basic Electrical & Electronics
An inductor and resistor are connected in series and a DC voltage V is applied. At steady state, what is the current?
Answer is hidden
Question 78 of 748Ch 1 · Basic Electrical & Electronics
Three resistors each of 2 Ω are connected in delta. What is the equivalent resistance between any two terminals?
Answer is hidden
Question 79 of 748Ch 1 · Basic Electrical & Electronics
A 1 Ω resistor is connected in parallel with a 3 Ω resistor. What is the equivalent resistance?
Answer is hidden
Question 80 of 748Ch 1 · Basic Electrical & Electronics
What is the Standing Wave Ratio (SWR) when the reflection coefficient is 0.8?
Answer is hidden
Question 81 of 748Ch 1 · Basic Electrical & Electronics
A transmission line has Z₀ = 50 Ω and termination impedance Za = 75 Ω. What is the SWR and reflection coefficient?
ASWR = 1.5, RC = 0.2
BSWR = 2.5, RC = 0.4
CSWR = 1.5, RC = 0.5
DSWR = 3, RC = 0.6
Answer is hidden
Question 82 of 748Ch 3 · Procedure and parallel programming languages
An Abstract Data Type (ADT) is defined primarily by its:
AInternal memory layout
BOperations/behavior, independent of implementation
CProgramming language
DCompiler used
Answer is hidden
Question 83 of 748Ch 3 · Procedure and parallel programming languages
Which of the following is NOT one of the three basic structured-programming control structures?
ASequence
BSelection
CIteration
DRecursion
Answer is hidden
Question 84 of 748Ch 3 · Procedure and parallel programming languages
The meaning of a syntactically correct statement is called its:
ASyntax
BSemantics
CStructure
DGrammar
Answer is hidden
Question 85 of 748Ch 3 · Procedure and parallel programming languages
Every recursive function must have a:
ALoop counter
BBase case
CGlobal variable
DPointer
Answer is hidden
Question 86 of 748Ch 3 · Procedure and parallel programming languages
In C, a string is terminated by which character?
ASpace character
BNewline character
CNull character '\0'
DEOF character
Answer is hidden
Question 87 of 748Ch 3 · Procedure and parallel programming languages
The RAM model of computation assumes each elementary operation takes:
AO(n) time
BO(log n) time
CA constant amount of time, O(1)
DO(n²) time
Answer is hidden
Question 88 of 748Ch 3 · Procedure and parallel programming languages
Which communication method is typical of loosely coupled (distributed) systems?
AShared memory
BMessage passing
CDirect memory access
DSemaphore only
Answer is hidden
Question 89 of 748Ch 3 · Procedure and parallel programming languages
A monitor differs from a semaphore mainly because a monitor:
ARequires manual wait()/signal() calls
BAutomatically enforces mutual exclusion around encapsulated shared data
CCannot be used for synchronization
DWorks only in distributed systems
Answer is hidden
Question 90 of 748Ch 3 · Procedure and parallel programming languages
The PRAM model assumes multiple processors:
ACommunicate only via message passing
BShare a common memory with unit-time access
CCannot run in parallel
DHave no memory at all
Answer is hidden
Question 91 of 748Ch 3 · Procedure and parallel programming languages
A 2-D array element is typically accessed using:
AOne index
BTwo indices
CThree indices
DNo index
Answer is hidden
Question 92 of 748Ch 3 · Exception handling in various languages
Which exception type must be declared or handled at compile time in Java?
AUnchecked exception
BChecked exception
CError
DRuntime exception
Answer is hidden
Question 93 of 748Ch 3 · Exception handling in various languages
Which block always executes, whether or not an exception was thrown?
Answer is hidden
Question 94 of 748Ch 3 · Exception handling in various languages
Which keyword is used to explicitly raise an exception?
Answer is hidden
Question 95 of 748Ch 3 · Exception handling in various languages
A NullPointerException in Java is an example of a(n):
AChecked exception
BUnchecked (runtime) exception
CCompile-time error
DSyntax error
Answer is hidden
Question 96 of 748Ch 3 · Exception handling in various languages
An OutOfMemoryError is typically classified as a(n):
AChecked exception
BUnchecked exception
CError
DEvent
Answer is hidden
Question 97 of 748Ch 3 · Exception handling in various languages
In Python, exceptions are handled using try together with which keyword?
Acatch
Bexcept
Crescue
Dhandle
Answer is hidden
Question 98 of 748Ch 3 · Exception handling in various languages
Event-driven programming primarily structures code around:
AA fixed sequential order
BResponding to events via handlers/listeners
CRecursive function calls
DOnly database transactions
Answer is hidden
Question 99 of 748Ch 3 · Exception handling in various languages
Why is exception handling especially important when working with large databases?
AIt speeds up queries
BIt prevents inconsistent data by allowing safe transaction rollback on failure
CIt removes the need for indexes
DIt replaces the need for a DBMS
Answer is hidden
Question 100 of 748Ch 3 · Exception handling in various languages
Which language does NOT provide a built-in 'finally' block (relying instead on RAII for cleanup)?
Answer is hidden
Question 101 of 748Ch 3 · Exception handling in various languages
The try block is used to:
AAlways execute cleanup code
BEnclose code that might throw an exception
CDeclare a new exception type
DTerminate the program immediately
Answer is hidden
Question 102 of 748Ch 3 · Pointers, structure and data files in C programming
If ptr is a pointer to int and int size is 4 bytes, what does ptr+1 do?
AMoves ptr forward by 1 byte
BMoves ptr forward by 4 bytes
CMoves ptr backward by 4 bytes
DHas no effect on ptr
Answer is hidden
Question 103 of 748Ch 3 · Pointers, structure and data files in C programming
The expression arr[i] is equivalent to which pointer expression?
A*(arr + i)
B&(arr + i)
Carr * i
D(arr + i)
Answer is hidden
Question 104 of 748Ch 3 · Pointers, structure and data files in C programming
In a union, how much memory is allocated?
ASum of the sizes of all members
BEqual to the size of the largest member
CEqual to the size of the smallest member
DZero bytes
Answer is hidden
Question 105 of 748Ch 3 · Pointers, structure and data files in C programming
Which operator is used to access a structure's member through a pointer to that structure?
A. (dot)
B-> (arrow)
C& (address-of)
D* (dereference only)
Answer is hidden
Question 106 of 748Ch 3 · Pointers, structure and data files in C programming
Passing a structure to a function by reference (pointer) is generally preferred for large structures because it:
AAlways changes the structure's type
BAvoids the overhead of copying the entire structure
CIs the only way to pass a structure in C
DMakes the structure read-only
Answer is hidden
Question 107 of 748Ch 3 · Pointers, structure and data files in C programming
Which function is used to move the file pointer to a specific position for random access?
Afopen()
Bfscanf()
Cfseek()
Dfclose()
Answer is hidden
Question 108 of 748Ch 3 · Pointers, structure and data files in C programming
Which mode opens a file for appending data at its end?
Answer is hidden
Question 109 of 748Ch 3 · Pointers, structure and data files in C programming
fread() and fwrite() are primarily used for:
AFormatted text I/O
BRaw binary data block I/O
CReading a single character only
DOpening a file
Answer is hidden
Question 110 of 748Ch 3 · Pointers, structure and data files in C programming
In C, all members of a structure:
AShare the same memory location
BHave their own separate memory
CCannot be accessed by pointer
DMust be of the same data type
Answer is hidden
Question 111 of 748Ch 3 · Pointers, structure and data files in C programming
Which function reports the current position of the file pointer?
Arewind()
Bfseek()
Cftell()
Dfopen()
Answer is hidden
Question 112 of 748Ch 3 · Object-oriented programming concepts
A class is best described as a:
AA running instance of an object
BA blueprint/template that defines data and behavior
CA single function
DA memory address
Answer is hidden
Question 113 of 748Ch 3 · Object-oriented programming concepts
Function overloading is an example of which kind of polymorphism?
ADynamic (run-time)
BStatic (compile-time)
CNo polymorphism at all
DVirtual polymorphism
Answer is hidden
Question 114 of 748Ch 3 · Object-oriented programming concepts
Which access specifier allows access from the class itself and its derived classes only?
Aprivate
Bprotected
Cpublic
Dfriend
Answer is hidden
Question 115 of 748Ch 3 · Object-oriented programming concepts
Method overriding, using virtual functions, is resolved:
AAt compile time
BAt run time
CDuring linking only
DNever
Answer is hidden
Question 116 of 748Ch 3 · Object-oriented programming concepts
AHiding a class's implementation details only
BBundling data and the methods that operate on it within a class
CCreating multiple objects of a class
DInheriting from a base class
Answer is hidden
Question 117 of 748Ch 3 · Object-oriented programming concepts
Which special member function has the same name as the class and no return type?
ADestructor
BConstructor
CFriend function
DStatic function
Answer is hidden
Question 118 of 748Ch 3 · Object-oriented programming concepts
In C++, dynamically allocated memory for an object must be released using:
AAn automatic garbage collector
Bdelete
CA destructor call only, never delete
DThe this pointer
Answer is hidden
Question 119 of 748Ch 3 · Object-oriented programming concepts
The 'this' pointer inside a non-static member function refers to:
AThe base class
BThe object on which the function was called
CA static data member
DThe compiler itself
Answer is hidden
Question 120 of 748Ch 3 · Object-oriented programming concepts
A static data member of a class:
AHas a separate copy for every object
BIs shared by all objects of the class, only one copy exists
CCannot be accessed by any member function
DIs destroyed with every object
Answer is hidden
Question 121 of 748Ch 3 · Object-oriented programming concepts
A friend function of a class can:
AOnly access public members of that class
BAccess the private and protected members of that class despite not being a member
CNever be called from outside the class
DOnly be a member of another class
Answer is hidden
Question 122 of 748Ch 3 · Streams, file handling
Which C++ stream class is used specifically for reading from a file?
Aofstream
Bifstream
Cfstream
Diostream
Answer is hidden
Question 123 of 748Ch 3 · Streams, file handling
Which stream state flag indicates that the end of a file has been reached?
Agoodbit
Beofbit
Cfailbit
Dbadbit
Answer is hidden
Question 124 of 748Ch 3 · Streams, file handling
cin is a predefined object of which class?
Aostream
Bistream
Cfstream
Diosbase only
Answer is hidden
Question 125 of 748Ch 3 · Streams, file handling
Which header defines manipulators like setw() and setprecision()?
A<iostream>
B<fstream>
C<iomanip>
D<cstdio>
Answer is hidden
Question 126 of 748Ch 3 · Streams, file handling
Which functions perform unformatted (raw) I/O in C++ streams?
Acin >> and cout <<
Bget(), put(), read(), write()
Csetw() and setfill()
Dseekg() and seekp()
Answer is hidden
Question 127 of 748Ch 3 · Streams, file handling
Which function moves the 'get' pointer to a specific position in a file, enabling random access?
Atellg()
Bseekg()
Cclose()
Dopen()
Answer is hidden
Question 128 of 748Ch 3 · Streams, file handling
Which base class do istream and ostream derive from?
Aiostream
Bios
Cfstream
Dstreambuf only
Answer is hidden
Question 129 of 748Ch 3 · Streams, file handling
Which manipulator inserts a newline and flushes the output buffer?
Asetw()
Bendl
Csetprecision()
Dhex
Answer is hidden
Question 130 of 748Ch 3 · Streams, file handling
Which function reports the current position of the 'put' pointer in a file stream?
Atellp()
Bseekg()
Ceof()
Dclear()
Answer is hidden
Question 131 of 748Ch 3 · Streams, file handling
To reset a stream's error state flags after an error, which function is used?
Afail()
Bclear()
Ceof()
Dgood()
Answer is hidden
Question 132 of 748Ch 3 · Templates
Which keyword pair is used to declare a function template in C++?
Aclass template
Btemplate<class T> / template<typename T>
Cgeneric function
Dtemplate function T
Answer is hidden
Question 133 of 748Ch 3 · Templates
The process of the compiler generating a specific version of a template for an actual data type is called:
AOverloading
BInstantiation
COverriding
DEncapsulation
Answer is hidden
Question 134 of 748Ch 3 · Templates
When both a template and a non-template function match a call equally well, the compiler generally prefers:
AThe template version
BThe non-template (ordinary) function
CNeither, it is an error
DA random choice
Answer is hidden
Question 135 of 748Ch 3 · Templates
A class template such as Stack<T> allows creation of:
AOnly one fixed-type Stack
BStacks of any data type, e.g. Stack<int>, Stack<float>
COnly integer stacks
DStacks with no type at all
Answer is hidden
Question 136 of 748Ch 3 · Templates
Member functions of a class template are defined outside the class using which syntax pattern?
AClassName::functionName() only
Btemplate<class T> ReturnType ClassName<T>::functionName()
Cfunction ClassName()
DT::ClassName::functionName()
Answer is hidden
Question 137 of 748Ch 3 · Templates
Which STL component stores collections of objects, such as vector or map?
AAlgorithms
BIterators
CContainers
DTemplates only
Answer is hidden
Question 138 of 748Ch 3 · Templates
Which STL component behaves like a generalized pointer used to traverse a container?
AAlgorithm
BIterator
CContainer
DTemplate parameter
Answer is hidden
Question 139 of 748Ch 3 · Templates
Which of these is an STL algorithm rather than a container?
Answer is hidden
Question 140 of 748Ch 3 · Templates
The STL achieves type-independence mainly through the use of:
AFunction overloading only
BTemplates
CFriend functions
DStatic members
Answer is hidden
Question 141 of 748Ch 3 · Templates
A function template allows:
AA single function definition to work with multiple data types
BOnly integer arguments to be used
CAutomatic exception handling
DDirect file access
Answer is hidden
Question 142 of 748Ch 3 · Computer Architecture & Hardware
When an interrupt occurs, the CPU transfers execution to:
AInterrupt Service Routine (ISR)
BMain program counter
CStack pointer
DAccumulator
Answer is hidden
Question 143 of 748Ch 3 · Computer Architecture & Hardware
The 8086 microprocessor operates in which two modes?
AReal mode and Protected mode
BMinimum mode and Maximum mode
CUser mode and Kernel mode
DSingle-bus and Multi-bus mode
Answer is hidden
Question 144 of 748Ch 3 · Computer Architecture & Hardware
Assembly language source code is translated to machine code by:
AAssembler
BCompiler
CInterpreter
DLinker
Answer is hidden
Question 145 of 748Ch 3 · Computer Architecture & Hardware
The 8255 Programmable Peripheral Interface (PPI) provides which type of interface?
APhysical
BLogical
CSerial
DOptical
Answer is hidden
Question 146 of 748Ch 3 · Computer Architecture & Hardware
RISC (Reduced Instruction Set Computer) architecture is characterized by:
AComplex variable-length instructions and small register file
BLarge number of registers, fixed instruction size, and pipelining
CMicrocode-based execution and many addressing modes
DSlow clock speed and large instruction cache
Answer is hidden
Question 147 of 748Ch 3 · Computer Architecture & Hardware
What does the Address Generation Unit (AGU) in a CPU do?
AExecutes floating-point operations
BComputes effective memory addresses
CManages cache replacement
DDecodes instruction opcodes
Answer is hidden
Question 148 of 748Ch 3 · Computer Architecture & Hardware
Pipelining in CPU design is also known as:
AParallel processing
BMultiprogramming
CAssembly-line operation / Instruction overlapping
DSuperscalar execution
Answer is hidden
Question 149 of 748Ch 3 · Computer Architecture & Hardware
How many signal wires does the I²C (Inter-Integrated Circuit) bus use?
Answer is hidden
Question 150 of 748Ch 3 · Computer Architecture & Hardware
A microprocessor fetches its next instruction from:
ACache memory
BRegister file
CMain memory (RAM)
DAccumulator
Answer is hidden
Question 151 of 748Ch 3 · Computer Architecture & Hardware
In an SPI bus running at 5 MHz with 8-bit frames, what is the time taken per bit?
A0.02 μs
B0.2 μs
C2 μs
D20 μs
Answer is hidden
Question 152 of 748Ch 3 · Computer Architecture & Hardware
Which circuit inside the CPU performs arithmetic and logical operations?
AControl Unit
BALU
CRegister File
DMemory Controller
Answer is hidden
Question 153 of 748Ch 3 · Computer Architecture & Hardware
In floating-point multiplication, the correct sequence of operations is:
AAdd exponents, multiply mantissas, then normalize and round
BMultiply exponents, add mantissas, then normalize
CSubtract exponents, multiply mantissas, then normalize
DMultiply mantissas, multiply exponents, then round
Answer is hidden
Question 154 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
The 8085 microprocessor has a data bus width of:
A4-bit
B8-bit
C16-bit
D32-bit
Answer is hidden
Question 155 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
How much memory can the 8085 address with its 16-bit address bus?
Answer is hidden
Question 156 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
The 8086 microprocessor uses a 20-bit address bus, allowing it to address:
Answer is hidden
Question 157 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
Which 8086 functional unit is responsible for fetching instructions and managing the bus?
AExecution Unit (EU)
BBus Interface Unit (BIU)
CArithmetic Logic Unit (ALU)
DControl Unit only
Answer is hidden
Question 158 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
Which 8085 addressing mode uses a register pair (e.g. HL) to hold the operand's address?
AImmediate
BDirect
CIndirect
DImplied
Answer is hidden
Question 159 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
A COM program is limited in size to:
Answer is hidden
Question 160 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
Which tool combines object modules and resolves cross-references into a single executable?
AAssembler
BLinker
CLoader
DCompiler
Answer is hidden
Question 161 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
A two-pass assembler builds a symbol table during:
APass 2 only
BPass 1
CBoth passes equally
DNeither pass
Answer is hidden
Question 162 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
A one-pass assembler resolves forward references using:
AA separate linker
BBack-patching
CTwo full scans of source code
DA hardware interrupt
Answer is hidden
Question 163 of 748Ch 5 · Programming with 8085 and 8086 microprocessors
Which component loads an executable program into memory and starts its execution?
AAssembler
BLinker
CLoader
DCompiler
Answer is hidden
Question 164 of 748Ch 5 · Microprocessor system
Which level of the memory hierarchy is the fastest and smallest?
ASecondary storage
BMain memory (RAM)
CCache
DRegisters
Answer is hidden
Question 165 of 748Ch 5 · Microprocessor system
In memory-mapped I/O, I/O devices are accessed using:
ASpecial IN/OUT instructions only
BOrdinary memory-reference instructions
CA completely separate processor
DDMA only
Answer is hidden
Question 166 of 748Ch 5 · Microprocessor system
The Intel 8255 PPI provides how many programmable 8-bit ports?
Answer is hidden
Question 167 of 748Ch 5 · Microprocessor system
Which 8255 mode provides a bidirectional data bus (Port A only)?
AMode 0
BMode 1
CMode 2
DMode 3 (does not exist)
Answer is hidden
Question 168 of 748Ch 5 · Microprocessor system
Synchronous transmission differs from asynchronous transmission mainly because it:
AUses start/stop bits per character
BUses a shared clock signal and sends data in blocks
CCannot transmit large amounts of data
DRequires no clock at all
Answer is hidden
Question 169 of 748Ch 5 · Microprocessor system
Which signal pair is used by a DMA controller to request and receive control of the system bus from the CPU?
AINTR/INTA
BHOLD/HLDA
CRESET/READY
DRD/WR
Answer is hidden
Question 170 of 748Ch 5 · Microprocessor system
The main benefit of DMA over programmed data transfer is that it:
AIncreases CPU involvement in every byte transferred
BFrees the CPU by transferring data directly between device and memory
CEliminates the need for memory entirely
DOnly works with serial devices
Answer is hidden
Question 171 of 748Ch 5 · Microprocessor system
In cycle-stealing DMA mode, the DMA controller:
ATransfers an entire block before releasing the bus
BTransfers one word at a time, periodically taking bus cycles from the CPU
CNever releases the bus
DCannot be used with a CPU
Answer is hidden
Question 172 of 748Ch 5 · Microprocessor system
A serial interface transmits data:
ASeveral bits simultaneously over parallel lines
BOne bit at a time over a single line
COnly using DMA
DOnly in synchronous mode
Answer is hidden
Question 173 of 748Ch 5 · Microprocessor system
RS-232 is an example of a:
AParallel interface standard
BSerial interface standard
CMemory device
DDMA controller
Answer is hidden
Question 174 of 748Ch 5 · Interrupt operations
Which 8085 interrupt has the highest priority and cannot be masked?
AINTR
BRST 5.5
CRST 6.5
DTRAP
Answer is hidden
Question 175 of 748Ch 5 · Interrupt operations
How many entries does the 8086 Interrupt Vector Table contain?
Answer is hidden
Question 176 of 748Ch 5 · Interrupt operations
Pseudo-parallelism refers to:
AMultiple processors executing truly simultaneously
BA single processor rapidly switching between tasks to simulate simultaneity
CA system with no CPU at all
DParallelism that never actually executes code
Answer is hidden
Question 177 of 748Ch 5 · Interrupt operations
According to Flynn's classification, a GPU applying one instruction across many data elements is an example of:
Answer is hidden
Question 178 of 748Ch 5 · Interrupt operations
A traditional single-processor computer belongs to which Flynn class?
Answer is hidden
Question 179 of 748Ch 5 · Interrupt operations
Multiple threads of the same process sharing memory is an example of parallelism at which level?
AInstruction level
BThread level
CProcess level
DBit level
Answer is hidden
Question 180 of 748Ch 5 · Interrupt operations
Which of the following is NOT one of the four necessary conditions for deadlock?
AMutual exclusion
BHold and wait
CPreemption allowed
DCircular wait
Answer is hidden
Question 181 of 748Ch 5 · Interrupt operations
A situation where each process in a set waits indefinitely for a resource held by another process in the same set is called:
AStarvation
BDeadlock
CThrashing
DPaging
Answer is hidden
Question 182 of 748Ch 5 · Interrupt operations
Which is a typical feature of a modern operating system?
ASingle-user access only
BProcess and memory management
CNo file management
DNo security features
Answer is hidden
Question 183 of 748Ch 5 · Interrupt operations
The ISR (Interrupt Service Routine) is executed:
ABefore the interrupt occurs
BIn response to an interrupt, then control returns to the interrupted program
COnly once, at system startup
DOnly for software interrupts
Answer is hidden
Question 184 of 748Ch 5 · Control and central processing units
Which control unit design uses fixed combinational logic circuits to generate control signals?
AMicroprogrammed control
BHardwired control
CSoftware control
DInterrupt-driven control
Answer is hidden
Question 185 of 748Ch 5 · Control and central processing units
Microprogrammed control stores its control signals as:
AHardware logic gates only
BMicroinstructions in a control memory
CEntries in the interrupt vector table
DCache memory blocks
Answer is hidden
Question 186 of 748Ch 5 · Control and central processing units
Which microinstruction format uses one bit per control signal, requiring little or no decoding?
AVertical format
BHorizontal format
CEncoded format
DCompressed format
Answer is hidden
Question 187 of 748Ch 5 · Control and central processing units
An instruction format that relies entirely on a stack, with operands implied, is called:
AOne-address instruction
BTwo-address instruction
CZero-address instruction
DThree-address instruction
Answer is hidden
Question 188 of 748Ch 5 · Control and central processing units
Which addressing mode specifies the operand's memory address directly within the instruction?
AImmediate addressing
BDirect addressing
CRegister addressing
DIndirect addressing
Answer is hidden
Question 189 of 748Ch 5 · Control and central processing units
RISC architectures are generally characterized by:
AA large, complex instruction set
BSimple, fixed-length instructions executing in a single cycle
CHeavy reliance on memory-to-memory operations
DVariable-length, multi-cycle instructions
Answer is hidden
Question 190 of 748Ch 5 · Control and central processing units
Which of the following is a typical CISC characteristic?
ALoad/store-only architecture
BFixed instruction length
CVariable-length, complex instructions with many addressing modes
DMinimal microcode use
Answer is hidden
Question 191 of 748Ch 5 · Control and central processing units
Pipelining improves CPU performance mainly by:
AExecuting only one instruction at a time
BOverlapping the execution stages of multiple instructions
CRemoving the need for a control unit
DEliminating all hazards automatically
Answer is hidden
Question 192 of 748Ch 5 · Control and central processing units
A pipeline hazard caused by a branch instruction changing the flow of execution is called a:
AStructural hazard
BData hazard
CControl hazard
DMemory hazard
Answer is hidden
Question 193 of 748Ch 5 · Control and central processing units
Which unit of the CPU performs arithmetic and logical operations on data?
AControl Unit
BALU
CRegister file only
DCache controller
Answer is hidden
Question 194 of 748Ch 5 · Computer arithmetic and memory system
Addition and subtraction in computer arithmetic are typically performed using:
A1's complement only
B2's complement representation
CSign-magnitude only
DBCD only
Answer is hidden
Question 195 of 748Ch 5 · Computer arithmetic and memory system
Which algorithm is a classic technique for binary multiplication?
ADijkstra's algorithm
BBooth's algorithm
CWarshall's algorithm
DPrim's algorithm
Answer is hidden
Question 196 of 748Ch 5 · Computer arithmetic and memory system
Cache memory improves performance mainly by exploiting:
ARandom access patterns
BThe principle of locality of reference
CLarger secondary storage
DSlower CPU clock speeds
Answer is hidden
Question 197 of 748Ch 5 · Computer arithmetic and memory system
In which cache mapping scheme can a memory block be placed in any cache line?
ADirect mapping
BFully associative mapping
CSequential mapping
DFixed mapping
Answer is hidden
Question 198 of 748Ch 5 · Computer arithmetic and memory system
Which cache replacement algorithm evicts the block that has not been used for the longest time?
Answer is hidden
Question 199 of 748Ch 5 · Computer arithmetic and memory system
Which write policy updates both the cache and main memory at the same time?
AWrite-back
BWrite-through
CWrite-once
DWrite-deferred
Answer is hidden
Question 200 of 748Ch 5 · Computer arithmetic and memory system
Compared to write-through, write-back is generally:
ASlower but simpler
BFaster, updating main memory only later
CImpossible to implement
DUsed only in ROM
Answer is hidden
Question 201 of 748Ch 5 · Computer arithmetic and memory system
Which type of memory is non-volatile?
ARAM
BCache
CROM
DCPU registers
Answer is hidden
Question 202 of 748Ch 5 · Computer arithmetic and memory system
A 'unified' cache refers to a cache that:
AStores only instructions
BStores only data
CStores both instructions and data together
DDoes not exist in real systems
Answer is hidden
Question 203 of 748Ch 5 · Computer arithmetic and memory system
'Composing memory' refers to:
ADeleting unused memory chips
BCombining smaller memory chips/modules with address decoding to build a required memory size
CCompressing data to save space
DWriting microcode into control memory
Answer is hidden
Question 204 of 748Ch 5 · Input-Output organization and multiprocessor
Which I/O transfer mode requires the CPU to continuously poll the device's status?
AInterrupt-driven I/O
BProgrammed I/O
CDMA
DMemory-mapped I/O only
Answer is hidden
Question 205 of 748Ch 5 · Input-Output organization and multiprocessor
Which I/O mode involves the least CPU involvement during the actual data transfer?
AProgrammed I/O
BInterrupt-driven I/O
CDMA
DPolling I/O
Answer is hidden
Question 206 of 748Ch 5 · Input-Output organization and multiprocessor
In interrupt-driven I/O, the CPU is notified that a device is ready by:
AContinuous polling
BAn interrupt signal from the device
CA DMA controller only
DA memory-mapped write only
Answer is hidden
Question 207 of 748Ch 5 · Input-Output organization and multiprocessor
The main benefit of a multiprocessor system is:
AReduced total memory capacity
BIncreased throughput and reliability through shared resources
CElimination of the need for an operating system
DGuaranteed single-threaded execution
Answer is hidden
Question 208 of 748Ch 5 · Input-Output organization and multiprocessor
Which interconnection structure connects all processors and memory modules to a single shared communication path?
ACrossbar switch
BBus-based structure
CMultistage network
DPoint-to-point mesh only
Answer is hidden
Question 209 of 748Ch 5 · Input-Output organization and multiprocessor
Which interconnection structure offers the highest performance by connecting every processor to every memory module directly, but at high cost?
ABus-based structure
BCrossbar switch
CRing topology
DStar topology
Answer is hidden
Question 210 of 748Ch 5 · Input-Output organization and multiprocessor
A multistage network is best described as:
ACheaper and slower than a bus
BA balance between the low cost of a bus and the high performance of a crossbar switch
CIdentical to a crossbar switch in cost
DUnusable in multiprocessor systems
Answer is hidden
Question 211 of 748Ch 5 · Input-Output organization and multiprocessor
Processors that do not share memory typically communicate using:
AShared memory only
BMessage passing
CDMA exclusively
DA single shared register
Answer is hidden
Question 212 of 748Ch 5 · Input-Output organization and multiprocessor
Which of the following is a synchronization primitive used to coordinate access to shared resources?
ASemaphore
BCache
CRegister
DBus arbiter only
Answer is hidden
Question 213 of 748Ch 5 · Input-Output organization and multiprocessor
An I/O module's role includes all of the following EXCEPT:
AData buffering
BStatus reporting
CError detection
DCompiling source code
Answer is hidden
Question 214 of 748Ch 5 · Theory of Computation
What condition indicates a circular queue is FULL (size = N, front and rear start at 0)?
ARear = Front
BRear = N − 1
CRear = (Front + 1) MOD N
DFront = 0
Answer is hidden
Question 215 of 748Ch 5 · Theory of Computation
Class P problems are solvable in polynomial time by which machine?
ANon-deterministic Turing Machine
BProbabilistic Turing Machine
CDeterministic Turing Machine
DOracle Turing Machine
Answer is hidden
Question 216 of 748Ch 5 · Theory of Computation
The thesis that states any algorithm computable by a person can be computed by a Turing Machine is:
AGödel's Incompleteness Theorem
BChurch-Turing Thesis
CRice's Theorem
DHalting Problem
Answer is hidden
Question 217 of 748Ch 5 · Theory of Computation
A Finite Automaton (FA) recognises languages described by which grammar type?
ARegular Grammar (Type 3)
BContext-Free Grammar (Type 2)
CContext-Sensitive Grammar (Type 1)
DUnrestricted Grammar (Type 0)
Answer is hidden
Question 218 of 748Ch 5 · Theory of Computation
The key characteristic of a Universal Turing Machine (UTM) is:
AIt runs on quantum hardware
BIt solves the halting problem
CIt can simulate any other Turing Machine
DIt operates in parallel
Answer is hidden
Question 219 of 748Ch 5 · Theory of Computation
A language is Turing-recognisable (recursively enumerable) if:
AA TM enumerator lists all strings in the language
BA finite automaton accepts it
CA PDA accepts it
DIt is decidable by a TM
Answer is hidden
Question 220 of 748Ch 5 · Theory of Computation
A Pushdown Automaton (PDA) that has at most one possible move for any input symbol and stack symbol is called:
ANon-deterministic PDA
BDeterministic PDA (DPDA)
CTwo-stack PDA
DTuring Machine
Answer is hidden
Question 221 of 748Ch 5 · Theory of Computation
The cardinality of the power set of a set with 4 elements, |P(1,2,3,4)|, is:
Answer is hidden
Question 222 of 748Ch 5 · Theory of Computation
What grammar notation uses meta-symbols to formally define the syntax of programming languages?
ABNF (Backus-Naur Form)
BRegular Expression
CFinite Automaton
DTruth Table
Answer is hidden
Question 223 of 748Ch 6 · Foundations 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 224 of 748Ch 6 · Foundations 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 225 of 748Ch 6 · Foundations 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 226 of 748Ch 6 · Foundations 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 227 of 748Ch 6 · Foundations 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 228 of 748Ch 6 · Foundations 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 229 of 748Ch 6 · Foundations 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 230 of 748Ch 6 · Foundations 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 231 of 748Ch 6 · Foundations 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 232 of 748Ch 6 · Foundations 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 233 of 748Ch 6 · Divide 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 234 of 748Ch 6 · Divide and conquer algorithms
Binary Search requires the input array to be:
AUnsorted
BSorted
CA linked list only
DA heap
Answer is hidden
Question 235 of 748Ch 6 · Divide 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 236 of 748Ch 6 · Divide 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 237 of 748Ch 6 · Divide 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 238 of 748Ch 6 · Divide 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 239 of 748Ch 6 · Divide 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 240 of 748Ch 6 · Divide 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 241 of 748Ch 6 · Divide 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 242 of 748Ch 6 · Divide 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 243 of 748Ch 6 · Dynamic 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 244 of 748Ch 6 · Dynamic 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 245 of 748Ch 6 · Dynamic 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 246 of 748Ch 6 · Dynamic 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 247 of 748Ch 6 · Dynamic 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 248 of 748Ch 6 · Dynamic 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 249 of 748Ch 6 · Dynamic 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 250 of 748Ch 6 · Dynamic programming
The time complexity of the Floyd-Warshall algorithm is:
AO(V)
BO(V²)
CO(V³)
DO(V log V)
Answer is hidden
Question 251 of 748Ch 6 · Dynamic 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 252 of 748Ch 6 · Dynamic 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 253 of 748Ch 6 · Loading, 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 254 of 748Ch 6 · Loading, 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 255 of 748Ch 6 · Loading, 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 256 of 748Ch 6 · Loading, 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 257 of 748Ch 6 · Loading, 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 258 of 748Ch 6 · Loading, 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 259 of 748Ch 6 · Loading, 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 260 of 748Ch 6 · Loading, 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 261 of 748Ch 6 · Loading, 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 262 of 748Ch 6 · Loading, 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 263 of 748Ch 6 · Macro 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 264 of 748Ch 6 · Macro 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 265 of 748Ch 6 · Macro 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 266 of 748Ch 6 · Macro 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 267 of 748Ch 6 · Macro 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 268 of 748Ch 6 · Macro 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 269 of 748Ch 6 · Macro 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 270 of 748Ch 6 · Macro 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 271 of 748Ch 6 · Macro 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 272 of 748Ch 6 · Macro 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 273 of 748Ch 6 · Network Programming
Which protocol is connection-oriented and guarantees reliable, ordered delivery?
AUDP
BIP
CTCP
DNone of these
Answer is hidden
Question 274 of 748Ch 6 · Network Programming
Which protocol offers low overhead but no guarantee of delivery or ordering?
ATCP
BUDP
CSCTP
DIP with TCP
Answer is hidden
Question 275 of 748Ch 6 · Network 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 276 of 748Ch 6 · Network 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 277 of 748Ch 6 · Network Programming
Which socket function marks a socket as ready to accept incoming connections?
Aconnect()
Bbind()
Clisten()
Dsend()
Answer is hidden
Question 278 of 748Ch 6 · Network Programming
Which function converts a 16-bit value from host byte order to network byte order?
Antohs()
Bhtons()
Chtonl()
Dntohl()
Answer is hidden
Question 279 of 748Ch 6 · Network 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 280 of 748Ch 6 · Network 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 281 of 748Ch 6 · Network 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 282 of 748Ch 6 · Network 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 283 of 748Ch 6 · Computer Graphics & AI
The activation function used in a Hopfield Network is:
ASigmoid
BReLU
CTanh
DSign (Signum)
Answer is hidden
Question 284 of 748Ch 6 · Computer 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 285 of 748Ch 6 · Computer Graphics & AI
In an AI agent, which component carries out actions on the environment?
ASensors
BKnowledge base
CActuators
DInference engine
Answer is hidden
Question 286 of 748Ch 6 · Computer 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 287 of 748Ch 6 · Computer 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 288 of 748Ch 6 · Computer 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 289 of 748Ch 6 · Computer Graphics & AI
How many distinct reflection planes exist in 3D space?
Answer is hidden
Question 290 of 748Ch 6 · Computer 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 291 of 748Ch 6 · Computer 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 292 of 748Ch 6 · Computer 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 293 of 748Ch 6 · Computer 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 294 of 748Ch 6 · Computer 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 295 of 748Ch 6 · Computer 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 296 of 748Ch 6 · Computer 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 297 of 748Ch 6 · Computer 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 298 of 748Ch 6 · Computer Graphics & AI
The transformation matrix [[1,0,0],[0,5,0],[0,0,2]] represents:
ATranslation
BScaling
CRotation
DShearing
Answer is hidden
Question 299 of 748Ch 6 · Computer Graphics & AI
ADirect Drawing Algorithm
BDigital Differential Analyzer
CDynamic Display Adapter
DDiscrete Drawing Approach
Answer is hidden
Question 300 of 748Ch 6 · Computer Graphics & AI
The OOAD methodology that features macro and micro development processes is:
ABooch Method
BRumbaugh OMT
CJacobson OOSE
DRUP
Answer is hidden
Question 301 of 748Ch 6 · Computer 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 302 of 748Ch 6 · Computer 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
Question 303 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
A stack follows which principle?
AFIFO
BLIFO
CRandom
DPriority
Answer is hidden
Question 304 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
A queue follows which principle?
Answer is hidden
Question 305 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
Which traversal of a Binary Search Tree gives elements in sorted order?
APre-order
BIn-order
CPost-order
DLevel-order
Answer is hidden
Question 306 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
Big-O notation describes the ____ of an algorithm.
ABest case
BWorst-case upper bound
CExact memory usage
DSource code length
Answer is hidden
Question 307 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
In a doubly linked list, each node has:
AOne pointer (to next)
BTwo pointers (to next and previous)
CNo pointers
DThree data fields
Answer is hidden
Question 308 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
ASelf-balancing binary search tree
BLinked list
CHash table
DStack
Answer is hidden
Question 309 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
The postfix expression for (A + B) is:
Answer is hidden
Question 310 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
Stacks are commonly used to evaluate:
AInfix expressions directly
BPostfix expressions
CSQL queries
DGraphs
Answer is hidden
Question 311 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
In a Binary Search Tree, for any node, the left child is:
AGreater than the node
BLess than the node
CEqual to the node
DUnrelated to the node
Answer is hidden
Question 312 of 748Ch 7 · Data Structures, Lists, Linked Lists & Trees
Which data structure provides O(1) random access by index?
ALinked list
BArray
CBinary tree
DQueue
Answer is hidden
Question 313 of 748Ch 7 · Sorting, Searching & Graphs
The average time complexity of merge sort is:
AO(n)
BO(n²)
CO(n log n)
DO(log n)
Answer is hidden
Question 314 of 748Ch 7 · Sorting, Searching & Graphs
Binary search requires the data to be:
AUnsorted
BSorted
CStored as a linked list
DHashed
Answer is hidden
Question 315 of 748Ch 7 · Sorting, Searching & Graphs
BFS (Breadth-First Search) is implemented using a:
Answer is hidden
Question 316 of 748Ch 7 · Sorting, Searching & Graphs
DFS (Depth-First Search) typically uses a:
AQueue
BStack or recursion
CHash table
DPriority queue
Answer is hidden
Question 317 of 748Ch 7 · Sorting, Searching & Graphs
Which algorithm finds the shortest path from a source in a weighted graph with non-negative weights?
AKruskal's algorithm
BDijkstra's algorithm
CBubble sort
DWarshall's algorithm
Answer is hidden
Question 318 of 748Ch 7 · Sorting, Searching & Graphs
Prim's and Kruskal's algorithms are used to find a:
AShortest path
BMinimum spanning tree
CHash table
DSorted list
Answer is hidden
Question 319 of 748Ch 7 · Sorting, Searching & Graphs
The average-case time complexity of a well-designed hash table lookup is:
AO(n)
BO(log n)
CO(1)
DO(n²)
Answer is hidden
Question 320 of 748Ch 7 · Sorting, Searching & Graphs
When two keys map to the same hash index, it is called a:
AHit
BCollision
COverflow
DFault
Answer is hidden
Question 321 of 748Ch 7 · Sorting, Searching & Graphs
The worst-case time complexity of quick sort is:
AO(n log n)
BO(n)
CO(n²)
DO(log n)
Answer is hidden
Question 322 of 748Ch 7 · Sorting, Searching & Graphs
Topological sorting can be applied only to a:
ACyclic graph
BDirected acyclic graph (DAG)
CComplete undirected graph
DUndirected graph
Answer is hidden
Question 323 of 748Ch 7 · Data Models, Normalization & SQL
A key that uniquely identifies each row and cannot be NULL is the:
AForeign key
BPrimary key
CSuper key
DCandidate key
Answer is hidden
Question 324 of 748Ch 7 · Data Models, Normalization & SQL
Which normal form removes transitive dependencies?
Answer is hidden
Question 325 of 748Ch 7 · Data Models, Normalization & SQL
The SQL command SELECT belongs to which category?
Answer is hidden
Question 326 of 748Ch 7 · Data Models, Normalization & SQL
CREATE, ALTER, and DROP are examples of:
Answer is hidden
Question 327 of 748Ch 7 · Data Models, Normalization & SQL
A foreign key is used to:
AUniquely identify a row in the same table
BReference the primary key of another table
CSort data in ascending order
DEncrypt sensitive data
Answer is hidden
Question 328 of 748Ch 7 · Data Models, Normalization & SQL
A table is in 1NF if all its attribute values are:
AComposite and multi-valued
BAtomic (indivisible)
CEncrypted
DForeign keys
Answer is hidden
Question 329 of 748Ch 7 · Data Models, Normalization & SQL
An entity that cannot be uniquely identified by its own attributes is a:
AStrong entity
BWeak entity
CSuper entity
DPrimary entity
Answer is hidden
Question 330 of 748Ch 7 · Data Models, Normalization & SQL
A virtual table derived from a query is called a:
AIndex
BView
CTrigger
DSchema
Answer is hidden
Question 331 of 748Ch 7 · Data Models, Normalization & SQL
GRANT and REVOKE are part of which SQL category?
Answer is hidden
Question 332 of 748Ch 7 · Data Models, Normalization & SQL
In BCNF, every determinant must be a:
AForeign key
BCandidate key
CComposite attribute
DNULL value
Answer is hidden
Question 333 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
The ACID properties of a transaction are:
AAtomicity, Consistency, Isolation, Durability
BAccess, Control, Integrity, Data
CAdd, Copy, Insert, Delete
DAtomic, Concurrent, Indexed, Distributed
Answer is hidden
Question 334 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
The 'all-or-nothing' property of a transaction is:
AConsistency
BAtomicity
CIsolation
DDurability
Answer is hidden
Question 335 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
Once a transaction commits, its changes persist even after a crash. This is:
AAtomicity
BIsolation
CDurability
DConsistency
Answer is hidden
Question 336 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
Two-Phase Locking (2PL) is used to ensure:
ADeadlock prevention
BSerializability
CData redundancy
DEncryption
Answer is hidden
Question 337 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
A situation where two transactions wait indefinitely for each other's locks is:
AStarvation
BDeadlock
CRollback
DCheckpoint
Answer is hidden
Question 338 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
In log-based recovery, reapplying committed transactions is called:
Answer is hidden
Question 339 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
Which lock allows multiple transactions to read simultaneously?
AExclusive lock
BShared lock
CWrite lock
DDeadlock
Answer is hidden
Question 340 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
A checkpoint in recovery is used to:
AEncrypt the transaction log
BReduce the amount of recovery work needed after a crash
CDelete the entire database
DCreate new indexes automatically
Answer is hidden
Question 341 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
Isolation in ACID ensures that:
ATransactions are permanently stored after commit
BConcurrent transactions don't interfere with each other
CData is encrypted during transmission
DAll operations in a transaction complete
Answer is hidden
Question 342 of 748Ch 7 · Transaction Processing, Concurrency & Recovery
UNDO operation in recovery is applied to:
ACommitted transactions
BUncommitted (incomplete) transactions
CDatabase indexes
DVirtual views
Answer is hidden
Question 343 of 748Ch 7 · Operating System & Process Management
A process is best defined as:
AA stored program on disk
BA program in execution
CA file in the file system
DA CPU register value
Answer is hidden
Question 344 of 748Ch 7 · Operating System & Process Management
Which scheduling algorithm is preemptive and uses a time quantum?
AFCFS
BSJF
CRound Robin
DNon-preemptive Priority
Answer is hidden
Question 345 of 748Ch 7 · Operating System & Process Management
The core component of an operating system is the:
AShell
BKernel
CCompiler
DDevice driver
Answer is hidden
Question 346 of 748Ch 7 · Operating System & Process Management
Which structure stores all information about a process?
AFile Allocation Table
BProcess Control Block (PCB)
CPage table only
DCPU cache
Answer is hidden
Question 347 of 748Ch 7 · Operating System & Process Management
A condition where the result depends on the timing of concurrent processes is a:
ADeadlock
BRace condition
CPage fault
DInterrupt
Answer is hidden
Question 348 of 748Ch 7 · Operating System & Process Management
A binary semaphore is also called a:
AMonitor
BMutex
CThread
DPipe
Answer is hidden
Question 349 of 748Ch 7 · Operating System & Process Management
Which scheduling algorithm gives the minimum average waiting time?
AFCFS
BShortest Job First (SJF)
CRound Robin
DPriority scheduling
Answer is hidden
Question 350 of 748Ch 7 · Operating System & Process Management
A lightweight unit of execution that shares memory with others in the same process is a:
AProcess
BThread
CKernel
DDaemon
Answer is hidden
Question 351 of 748Ch 7 · Operating System & Process Management
The interface through which a program requests OS services is the:
ACompiler
BSystem call
CSystem bus
DCPU cache
Answer is hidden
Question 352 of 748Ch 7 · Operating System & Process Management
The Dining Philosophers problem illustrates issues of:
ASorting algorithms
BSynchronization and deadlock
CData compression
DNetwork routing
Answer is hidden
Question 353 of 748Ch 7 · Memory Management, File Systems & Administration
Dividing memory into fixed-size pages and frames is called:
ASegmentation
BPaging
CSwapping
DCompaction
Answer is hidden
Question 354 of 748Ch 7 · Memory Management, File Systems & Administration
A page fault occurs when:
AThe CPU fails
BA required page is not in main memory
CThe disk is completely full
DA process terminates
Answer is hidden
Question 355 of 748Ch 7 · Memory Management, File Systems & Administration
Which page replacement algorithm replaces the page not used for the longest time?
Answer is hidden
Question 356 of 748Ch 7 · Memory Management, File Systems & Administration
Wasted space inside an allocated memory block is called:
AExternal fragmentation
BInternal fragmentation
CSwapping
DThrashing
Answer is hidden
Question 357 of 748Ch 7 · Memory Management, File Systems & Administration
Virtual memory is most commonly implemented using:
AMemory compaction
BDemand paging
CData compression
DCPU caching only
Answer is hidden
Question 358 of 748Ch 7 · Memory Management, File Systems & Administration
The theoretically optimal page replacement algorithm replaces the page:
AThat was loaded first
BNot needed for the longest future time
CThat was used most recently
DSelected at random
Answer is hidden
Question 359 of 748Ch 7 · Memory Management, File Systems & Administration
FIFO page replacement may suffer from:
ADeadlock
BBelady's anomaly
CStarvation
DRace conditions
Answer is hidden
Question 360 of 748Ch 7 · Memory Management, File Systems & Administration
Moving a process between main memory and disk is called:
APaging
BSwapping
CHashing
DIndexing
Answer is hidden
Question 361 of 748Ch 7 · Memory Management, File Systems & Administration
Which file allocation method stores file blocks in consecutive disk locations?
ALinked allocation
BIndexed allocation
CContiguous allocation
DHashed allocation
Answer is hidden
Question 362 of 748Ch 7 · Memory Management, File Systems & Administration
External fragmentation can be reduced by:
AAdding more CPU registers
BCompaction or using paging
CDisabling the CPU cache
DIncreasing the CPU clock speed
Answer is hidden
Question 363 of 748Ch 7 · Operating Systems & DBMS
Which entity has its own memory space, program counter, and code segment?
AProcess
BThread
CCoroutine
DInterrupt handler
Answer is hidden
Question 364 of 748Ch 7 · Operating Systems & DBMS
An OS that groups similar jobs together for batch execution is a:
AReal-time OS
BTime-sharing OS
CBatch Processing OS
DDistributed OS
Answer is hidden
Question 365 of 748Ch 7 · Operating Systems & DBMS
In DBMS, which component is responsible for maintaining concurrency control?
ATransaction Manager
BBuffer Manager
CDisk Manager
DCatalog Manager
Answer is hidden
Question 366 of 748Ch 7 · Operating Systems & DBMS
Which DBMS component estimates and minimises the cost of query execution?
AParser
BQuery Optimizer
CBuffer Manager
DCatalog
Answer is hidden
Question 367 of 748Ch 7 · Operating Systems & DBMS
A semaphore in OS represents:
AA synchronisation mechanism for shared resources
BA type of scheduling algorithm
CA memory management unit
DA file system structure
Answer is hidden
Question 368 of 748Ch 7 · Operating Systems & DBMS
BFS (Breadth-First Search) uses which data structure?
AStack
BQueue
CPriority Queue
DHeap
Answer is hidden
Question 369 of 748Ch 7 · Operating Systems & DBMS
DFS (Depth-First Search) uses which data structure (or property)?
AQueue (FIFO)
BStack (LIFO)
CPriority Queue
DHash Table
Answer is hidden
Question 370 of 748Ch 7 · Operating Systems & DBMS
For an AVL tree with 7 nodes, what is the maximum possible height?
Answer is hidden
Question 371 of 748Ch 7 · Operating Systems & DBMS
Which array correctly represents a min-heap?
A[4, 3, 2, 1]
B[1, 3, 2, 4]
C[3, 1, 2, 4]
D[2, 4, 1, 3]
Answer is hidden
Question 372 of 748Ch 7 · Operating Systems & DBMS
The time complexity of the enqueue operation in a queue implemented with a linked list is:
AO(1)
BO(n)
CO(log n)
DO(n²)
Answer is hidden
Question 373 of 748Ch 7 · Operating Systems & DBMS
The average time complexity of sequential (linear) search is:
AO(1)
BO(n)
CO(log n)
DO(n²)
Answer is hidden
Question 374 of 748Ch 7 · Operating Systems & DBMS
The basic classification of computer memory is:
AVolatile (RAM) and Non-volatile (ROM/Flash)
BPrimary and Secondary
CCache and Main memory
DStatic and Dynamic
Answer is hidden
Question 375 of 748Ch 8 · Software Process & Requirements Engineering
Which SDLC model is best described as sequential and rigid?
ASpiral
BWaterfall
CAgile
DPrototype
Answer is hidden
Question 376 of 748Ch 8 · Software Process & Requirements Engineering
Response time and scalability are examples of:
AFunctional requirements
BNon-functional requirements
CDesign constraints
DTest cases
Answer is hidden
Question 377 of 748Ch 8 · Software Process & Requirements Engineering
A Software Requirements Specification (SRS) document:
AContains only UML diagrams
BCompletely describes what the software should do
CIs written after deployment
DReplaces the source code
Answer is hidden
Question 378 of 748Ch 8 · Software Process & Requirements Engineering
Which process model is primarily driven by risk analysis?
AWaterfall
BBig Bang
CV-Model
DSpiral
Answer is hidden
Question 379 of 748Ch 8 · Software Process & Requirements Engineering
In the V-Model, each development phase is paired with a corresponding:
ACoding phase
BTesting phase
CDesign phase
DDeployment phase
Answer is hidden
Question 380 of 748Ch 8 · Software Process & Requirements Engineering
Unlike hardware, software:
AWears out with use
BDoes not wear out but may degrade over time without maintenance
CGets physically damaged
DImproves automatically over time
Answer is hidden
Question 381 of 748Ch 8 · Software Process & Requirements Engineering
'The system shall authenticate users' is an example of a:
ANon-functional requirement
BFunctional requirement
CDesign constraint
DTechnical specification
Answer is hidden
Question 382 of 748Ch 8 · Software Process & Requirements Engineering
The prototype model in software development is used to:
AWrite final production code quickly
BClarify and validate requirements through an early working model
CSkip the testing phase
DDeploy software with no testing
Answer is hidden
Question 383 of 748Ch 8 · Software Process & Requirements Engineering
Agile software development emphasises:
AStrict documentation over working software
BIterative delivery and customer collaboration
CA single delivery at the end of the project
DNo testing
Answer is hidden
Question 384 of 748Ch 8 · Software Process & Requirements Engineering
Which is the FIRST step in the requirements engineering process?
AValidation
BElicitation
CSpecification
DManagement
Answer is hidden
Question 385 of 748Ch 8 · Software Design
Good software design aims for:
ALow cohesion and low coupling
BHigh cohesion and high coupling
CHigh cohesion and low coupling
DLow cohesion and high coupling
Answer is hidden
Question 386 of 748Ch 8 · Software Design
ADependencies between different modules
BRelatedness of responsibilities within a single module
CNumber of lines of code
DNumber of developers on the team
Answer is hidden
Question 387 of 748Ch 8 · Software Design
AInternal logic within a module
BDegree of interdependence between different modules
CDatabase schema design
DNumber of test cases
Answer is hidden
Question 388 of 748Ch 8 · Software Design
The design principle of hiding module internals from other modules is called:
AInheritance
BInformation hiding
CPolymorphism
DNormalization
Answer is hidden
Question 389 of 748Ch 8 · Software Design
Which type of cohesion is considered the BEST (highest)?
ACoincidental cohesion
BFunctional cohesion
CTemporal cohesion
DLogical cohesion
Answer is hidden
Question 390 of 748Ch 8 · Software Design
Which type of coupling is considered the WORST?
AData coupling
BContent coupling
CControl coupling
DExternal coupling
Answer is hidden
Question 391 of 748Ch 8 · Software Design
Dividing software into smaller, independent, manageable units is called:
ANormalization
BModularity
CCoupling
DEncryption
Answer is hidden
Question 392 of 748Ch 8 · Software Design
In the Client-Server architecture:
AAll clients run independently
BThe server provides services and clients consume them
CThere are no network connections
DDatabase is eliminated
Answer is hidden
Question 393 of 748Ch 8 · Software Design
Building systems by composing pre-built, reusable software components is called:
ABig Bang development
BWaterfall development
CComponent-Based Software Engineering (CBSE)
DBlack-box testing
Answer is hidden
Question 394 of 748Ch 8 · Software Design
The principle of progressively elaborating a design from abstract to detailed is called:
AStepwise refinement
BInformation hiding
CCoupling
DReverse engineering
Answer is hidden
Question 395 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
Which testing level tests individual modules in isolation?
AAcceptance testing
BUnit testing
CIntegration testing
DSystem testing
Answer is hidden
Question 396 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
White-box testing is based on:
AExternal requirements only
BKnowledge of the internal code structure
CUser feedback
DRandom inputs
Answer is hidden
Question 397 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
'Are we building the right product?' is the question answered by:
AVerification
BValidation
CCompilation
DRefactoring
Answer is hidden
Question 398 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
COCOMO is used to estimate software:
AUI design complexity
BEffort and cost based on lines of code
CDatabase schema
DNetwork bandwidth
Answer is hidden
Question 399 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
How many maturity levels does CMMI have?
Answer is hidden
Question 400 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
Black-box testing is based on:
ACode inspection
BSystem requirements and specifications, without knowledge of internals
CDatabase indexes
DHardware specifications
Answer is hidden
Question 401 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
Integration testing verifies:
ASingle functions in isolation
BInteractions between combined modules
CHardware compatibility
DEnd-user acceptability
Answer is hidden
Question 402 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
Software Configuration Management (SCM) includes:
ADesigning UML diagrams
BVersion control, change control, and release management
CCPU scheduling
DNetwork design
Answer is hidden
Question 403 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
'Are we building the product right?' is answered by:
AValidation
BVerification
CIntegration testing
DAcceptance testing
Answer is hidden
Question 404 of 748Ch 8 · Software Testing, Cost Estimation, Quality & Configuration Management
ASorting algorithms
BQuality management systems
CNetwork protocols
DDatabase normalization
Answer is hidden
Question 405 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
AUnified Modeling Language
BUniversal Markup Language
CUnified Method Language
DUnit Management Language
Answer is hidden
Question 406 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
An actor in a use case diagram is:
AA database table
BAn external entity that interacts with the system
CA method in a class
DA programming variable
Answer is hidden
Question 407 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
Which UML diagram shows classes, attributes, and their relationships?
AUse case diagram
BSequence diagram
CClass diagram
DActivity diagram
Answer is hidden
Question 408 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
Which UML diagram models the dynamic behavior and time-ordered interactions?
AClass diagram
BSequence diagram
CDeployment diagram
DComponent diagram
Answer is hidden
Question 409 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
The relationship 'Dog IS-A Animal' in OO design is an example of:
AAggregation
BComposition
CGeneralization (Inheritance)
DDependency
Answer is hidden
Question 410 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
The relationship 'University HAS-A Department' where Department can exist independently is:
AGeneralization
BAggregation
CDependency
DComposition
Answer is hidden
Question 411 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
A use case diagram primarily shows:
AInternal code structure
BWhat the system does from the user's perspective
CHardware configuration
DDatabase schema
Answer is hidden
Question 412 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
The OO development cycle starts with:
ACoding
BRequirements gathering followed by OO Analysis
CDeployment
DTesting
Answer is hidden
Question 413 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
In Composition (strong HAS-A), the part:
ACan exist independently of the whole
BCannot exist without the whole
CIs always an abstract class
DInherits from the whole
Answer is hidden
Question 414 of 748Ch 8 · Object-Oriented Fundamentals & Analysis
Activity diagrams in UML are used to model:
AStatic class structures
BPhysical deployment of software
CDynamic workflows and business processes
DDatabase relationships
Answer is hidden
Question 415 of 748Ch 8 · Object-Oriented Design
AWhat the problem is
BHow to build the solution in software
CHardware selection
DNetwork topology
Answer is hidden
Question 416 of 748Ch 8 · Object-Oriented Design
A sequence diagram emphasises:
APhysical deployment of software
BThe time ordering of messages between objects
CDatabase schema
DClass attributes only
Answer is hidden
Question 417 of 748Ch 8 · Object-Oriented Design
A design pattern that ensures only one instance of a class exists is the:
AObserver
BFactory
CSingleton
DStrategy
Answer is hidden
Question 418 of 748Ch 8 · Object-Oriented Design
In UML class diagrams, '+' before an attribute means it is:
APrivate
BProtected
CPackage
DPublic
Answer is hidden
Question 419 of 748Ch 8 · Object-Oriented Design
A collaboration (communication) diagram emphasises:
AThe time ordering of messages
BThe structural organisation of objects and their links
CHardware components
DDatabase tables
Answer is hidden
Question 420 of 748Ch 8 · Object-Oriented Design
Singleton, Factory, and Observer are examples of:
ATest cases
BDesign patterns
CDatabase triggers
DSDLC models
Answer is hidden
Question 421 of 748Ch 8 · Object-Oriented Design
'-' before a class attribute in UML indicates:
APublic visibility
BProtected visibility
CPrivate visibility
DPackage visibility
Answer is hidden
Question 422 of 748Ch 8 · Object-Oriented Design
Which symbol in UML indicates protected visibility?
Answer is hidden
Question 423 of 748Ch 8 · Object-Oriented Design
Sequence and collaboration diagrams are both types of:
AStructural diagrams
BInteraction diagrams
CDeployment diagrams
DState diagrams
Answer is hidden
Question 424 of 748Ch 8 · Object-Oriented Design
GRASP is a set of patterns for:
ATest case generation
BNetwork configuration
CDatabase normalization
DAssigning responsibilities to classes in OO design
Answer is hidden
Question 425 of 748Ch 8 · Object-Oriented Design Implementation
In OO implementation, design class diagram attributes become:
ADatabase tables
BFields or instance variables in a class
CTest cases
DNetwork protocols
Answer is hidden
Question 426 of 748Ch 8 · Object-Oriented Design Implementation
Messages in a collaboration/sequence diagram are translated into code as:
AClass declarations
BMethod calls in the receiver object's method body
CDatabase queries
DHTML elements
Answer is hidden
Question 427 of 748Ch 8 · Object-Oriented Design Implementation
Forward engineering refers to:
AGenerating models from existing code
BTesting old software
CGenerating code from design models
DRefactoring only
Answer is hidden
Question 428 of 748Ch 8 · Object-Oriented Design Implementation
Reverse engineering refers to:
AGenerating test cases automatically
BRecovering design models from existing source code
CDeploying software
DNormalizing a database
Answer is hidden
Question 429 of 748Ch 8 · Object-Oriented Design Implementation
Exception handling in OO languages uses keywords:
Astart / stop / pause
Btry / catch / throw
Cpush / pop / peek
Dbegin / end / error
Answer is hidden
Question 430 of 748Ch 8 · Object-Oriented Design Implementation
A uni-directional association from Class A to Class B is implemented as:
AA reference attribute in Class A pointing to Class B
BA database trigger
CA method in Class B
DAn abstract method
Answer is hidden
Question 431 of 748Ch 8 · Object-Oriented Design Implementation
Design class diagram operations become:
ADatabase columns
BMethods (functions) in the implementation class
CHTML forms
DTest suites
Answer is hidden
Question 432 of 748Ch 8 · Object-Oriented Design Implementation
Round-trip engineering keeps:
ASource code and test cases synchronized
BDesign models and source code synchronized
CDatabases and UI synchronized
DNetworks and servers synchronized
Answer is hidden
Question 433 of 748Ch 8 · Object-Oriented Design Implementation
Improving the internal structure of code without changing its external behaviour is called:
AReverse engineering
BRefactoring
CForward engineering
DTesting
Answer is hidden
Question 434 of 748Ch 8 · Object-Oriented Design Implementation
In OO implementation, the design is updated iteratively because:
ACode never changes
BNew insights during implementation may reveal design improvements
CTesting is not needed
DModels are written in Java
Answer is hidden
Question 435 of 748Ch 8 · Software Engineering & OOP
Which statement is TRUE about static member functions in C++?
AStatic functions can be overloaded
BStatic functions can access non-static members directly
CStatic functions require an object to be called
DStatic functions cannot have return values
Answer is hidden
Question 436 of 748Ch 8 · Software Engineering & OOP
For multiple inheritance in C++, how many base classes are required at minimum?
Answer is hidden
Question 437 of 748Ch 8 · Software Engineering & OOP
Which direction flag for the seekg()/seekp() stream functions is NOT valid in C++?
Aios::beg
Bios::cur
Cios::end
Dios::set
Answer is hidden
Question 438 of 748Ch 8 · Software Engineering & OOP
When does the Spiral Model of software development terminate?
AAfter the first prototype
BAfter all requirements are met
CAfter a fixed number of iterations
DWhen the product is cancelled or dies
Answer is hidden
Question 439 of 748Ch 8 · Software Engineering & OOP
SQA (Software Quality Assurance) combined with SQM (Software Quality Management) forms:
ASoftware Testing
BSoftware Verification
CSoftware Configuration Management
DSoftware Quality Processes
Answer is hidden
Question 440 of 748Ch 8 · Software Engineering & OOP
Software is best defined as:
AA set of executable programs only
BA set of programs, associated documentation, and configuration data
CHardware instructions stored in ROM
DAn operating system and its utilities
Answer is hidden
Question 441 of 748Ch 8 · Software Engineering & OOP
A Use Case describes interaction between:
AClasses and objects
BModules and components
CActor and the system (product)
DDatabase and application
Answer is hidden
Question 442 of 748Ch 8 · Software Engineering & OOP
CASE (Computer-Aided Software Engineering) tools are primarily used for:
AOnly code compilation
BOnly testing
CSupporting all phases of software development and project management
DDatabase administration only
Answer is hidden
Question 443 of 748Ch 8 · Software Engineering & OOP
Vertical lines (lifelines) in a UML Sequence Diagram represent:
AMethod calls
BObjects or actors
CTime intervals
DReturn values
Answer is hidden
Question 444 of 748Ch 8 · Software Engineering & OOP
In C++ templates, in the declaration template <class T>, T represents:
AA specific class name
BA template type parameter (placeholder for any type)
CA typedef alias
DA global variable
Answer is hidden
Question 445 of 748Ch 8 · Software Engineering & OOP
The primary purpose of C++ namespaces is to:
AAvoid naming conflicts and encapsulate code
BSpeed up compilation
CReplace header files
DManage memory allocation
Answer is hidden
Question 446 of 748Ch 8 · Software Engineering & OOP
Runtime polymorphism (late binding) in C++ is achieved through:
AFunction overloading
BVirtual functions
COperator overloading
DTemplates
Answer is hidden
Question 447 of 748Ch 8 · Software Engineering & OOP
The three main phases of Object-Oriented development are:
AAnalysis, Design, and Implementation
BRequirements, Coding, and Testing
CPlanning, Execution, and Closure
DModelling, Prototyping, and Deployment
Answer is hidden
Question 448 of 748Ch 8 · Software Engineering & OOP
Which SDLC model explicitly pairs each development phase with a testing phase in a V-shape?
AWaterfall Model
BV-Model (Verification and Validation)
CSpiral Model
DAgile Model
Answer is hidden
Question 449 of 748Ch 8 · Software Engineering & OOP
Version control systems are used primarily to:
ACompile source code
BTrack and manage multiple versions of code and files
CDebug runtime errors
DManage database schemas
Answer is hidden
Question 450 of 748Ch 8 · Software Engineering & OOP
The arrow notation in UML represents which relationship?
AAssociation
BAggregation
CGeneralisation (Inheritance)
DDependency
Answer is hidden
Question 451 of 748Ch 8 · Software Engineering & OOP
Which C/C++ keyword CANNOT be used as an identifier (variable name)?
Answer is hidden
Question 452 of 748Ch 8 · Software Engineering & OOP
The operator used to access a member of a structure through a pointer in C is:
Answer is hidden
Question 453 of 748Ch 8 · Software Engineering & OOP
Given classes A, B: public A, C: public B, the type of inheritance demonstrated is:
AMultiple inheritance
BMultilevel inheritance
CHierarchical inheritance
DHybrid inheritance
Answer is hidden
Question 454 of 748Ch 8 · Java basics and multithreading
Which component provides the runtime environment to execute Java bytecode?
Answer is hidden
Question 455 of 748Ch 8 · Java basics and multithreading
Which of the following includes development tools such as the compiler (javac)?
AJVM only
BJRE only
CJDK
DNone of these
Answer is hidden
Question 456 of 748Ch 8 · Java basics and multithreading
Which is the generally preferred way to create a thread in Java, since it avoids single inheritance limitations?
AExtending the Thread class
BImplementing the Runnable interface
CUsing only static methods
DOverriding main()
Answer is hidden
Question 457 of 748Ch 8 · Java basics and multithreading
The default thread priority in Java is:
A1 (MINPRIORITY)
B5 (NORMPRIORITY)
C10 (MAXPRIORITY)
D0
Answer is hidden
Question 458 of 748Ch 8 · Java basics and multithreading
The 'synchronized' keyword in Java is used to:
ASpeed up thread creation
BAllow only one thread to access a critical section at a time, preventing race conditions
CAutomatically terminate deadlocked threads
DConvert a thread into a process
Answer is hidden
Question 459 of 748Ch 8 · Java basics and multithreading
AA single thread runs out of memory
BTwo or more threads wait forever for resources held by each other
CA thread finishes execution normally
DThreads have different priorities
Answer is hidden
Question 460 of 748Ch 8 · Java basics and multithreading
Which methods, inherited from the Object class, are used for inter-thread communication?
Astart() and run()
Bwait(), notify(), and notifyAll()
Csuspend() and resume()
Dinterrupt() and join() only
Answer is hidden
Question 461 of 748Ch 8 · Java basics and multithreading
Why are the Thread class's suspend(), resume(), and stop() methods deprecated?
AThey run too fast
BThey are prone to causing deadlocks
CThey cannot create new threads
DThey are not part of the Java language
Answer is hidden
Question 462 of 748Ch 8 · Java basics and multithreading
Which String-related class is thread-safe (synchronized) for mutable character sequences?
AString
BStringBuilder
CStringBuffer
DCharSequence only
Answer is hidden
Question 463 of 748Ch 8 · Java basics and multithreading
Which class is used to format and parse dates using a custom pattern, such as 'dd-MM-yyyy'?
ACalendar
BRandom
CSimpleDateFormat
DNumberFormat
Answer is hidden
Question 464 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which method is used to add a component to an AWT Container?
Ainsert()
Badd()
Cplace()
Dattach()
Answer is hidden
Question 465 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which layout manager divides a container into North, South, East, West, and Center regions?
AFlowLayout
BGridLayout
CBorderLayout
DCardLayout
Answer is hidden
Question 466 of 748Ch 8 · Java swing, AWT, event handling and JDBC
In the delegation event model, which component generates an event?
AThe listener
BThe event source
CThe Container only
DThe JVM
Answer is hidden
Question 467 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which interface's actionPerformed() method handles button-click events?
AMouseListener
BKeyListener
CActionListener
DWindowListener
Answer is hidden
Question 468 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which class of events represents mouse actions such as clicks and drags?
AActionEvent
BMouseEvent
CKeyEvent
DItemEvent
Answer is hidden
Question 469 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Compared to AWT, Swing components are generally:
AHeavyweight and platform-dependent only
BLightweight, with a pluggable look-and-feel
CUnable to handle any events
DWritten in C++ only
Answer is hidden
Question 470 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Swing is built on top of which underlying toolkit?
AJava3D
BAWT
CJDBC
DServlet API
Answer is hidden
Question 471 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which design pattern underlies how Swing components separate data, presentation, and interaction logic?
ASingleton
BObserver only
CModel-View-Controller (MVC)
DFactory
Answer is hidden
Question 472 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Which of these is a typical Swing container used to hold other components?
AJButton
BJLabel
CJPanel
DJCheckBox
Answer is hidden
Question 473 of 748Ch 8 · Java swing, AWT, event handling and JDBC
Swing component class names are conventionally prefixed with which letter?
Answer is hidden
Question 474 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which of the following is a core J2EE technology used for business-logic components?
AHTML
BEJB (Enterprise JavaBeans)
CCSS
DXML only
Answer is hidden
Question 475 of 748Ch 8 · J2EE, servlet programming and JSP programming
In a typical multi-tier enterprise architecture, which tier handles servlets and JSPs?
AClient tier
BWeb tier
CBusiness tier
DEIS/Data tier
Answer is hidden
Question 476 of 748Ch 8 · J2EE, servlet programming and JSP programming
Compared to GET, a POST request:
AAlways appends parameters to the URL
BSends parameters in the request body, suited to larger/sensitive data
CCannot submit form data
DIs always cached by the browser
Answer is hidden
Question 477 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which component manages the lifecycle of servlets and JSPs within an application server?
AThe Web Container
BThe JVM only
CThe Deployment Descriptor
DJDBC
Answer is hidden
Question 478 of 748Ch 8 · J2EE, servlet programming and JSP programming
The web.xml file in a Java web application is known as the:
AServlet class
BDeployment Descriptor
CJavaBean
DRequest Dispatcher
Answer is hidden
Question 479 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which servlet method is typically overridden to handle an HTTP GET request?
AdoPost()
BdoGet()
Cinit()
Dservice() only
Answer is hidden
Question 480 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which mechanism is most commonly used in Java web applications to maintain session state across requests?
AHttpSession
BStatic variables only
CThe Deployment Descriptor
DJavaBeans only
Answer is hidden
Question 481 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which RequestDispatcher method transfers control to another resource without the client knowing?
Ainclude()
Bforward()
Credirect()
Ddispatch() (does not exist)
Answer is hidden
Question 482 of 748Ch 8 · J2EE, servlet programming and JSP programming
JSP code embedded in HTML is written using which delimiters?
Answer is hidden
Question 483 of 748Ch 8 · J2EE, servlet programming and JSP programming
Which JSP tag is used to instantiate or locate a JavaBean for use on the page?
A<jsp:include>
B<jsp:forward>
C<jsp:useBean>
D<jsp:param>
Answer is hidden
Question 484 of 748Ch 8 · Introduction to web technology
The basic model underlying the web, where a browser requests and a server responds, is called:
APeer-to-peer architecture
BClient-server architecture
CMesh architecture
DStandalone architecture
Answer is hidden
Question 485 of 748Ch 8 · Introduction to web technology
Which HTML5 tag is specifically intended for embedding video content?
A<section>
B<video>
C<nav>
D<article>
Answer is hidden
Question 486 of 748Ch 8 · Introduction to web technology
CSS3 media queries are primarily used to enable:
AServer-side scripting
BResponsive design that adapts layouts to different screen sizes
CDatabase connectivity
DXML validation
Answer is hidden
Question 487 of 748Ch 8 · Introduction to web technology
Which technology defines the legal structure and elements that a valid XML document must follow?
Answer is hidden
Question 488 of 748Ch 8 · Introduction to web technology
XSLT is primarily used to:
AEncrypt XML data
BTransform an XML document into another format such as HTML
CDefine database schemas
DValidate HTML5 tags
Answer is hidden
Question 489 of 748Ch 8 · Introduction to web technology
A digital certificate is issued by a:
AWeb browser
BCertificate Authority (CA)
CDNS server
DSearch engine
Answer is hidden
Question 490 of 748Ch 8 · Introduction to web technology
A digital signature primarily provides:
AData compression
BProof of a message's authenticity and integrity
CFaster network speed
DAutomatic translation of languages
Answer is hidden
Question 491 of 748Ch 8 · Introduction to web technology
SSL (Secure Socket Layer) is used to:
ASpeed up database queries
BProvide encrypted communication between client and server
CCompile Java servlets
DDesign HTML layouts
Answer is hidden
Question 492 of 748Ch 8 · Introduction to web technology
A VPN (Virtual Private Network) primarily provides:
AA public, unencrypted connection
BA secure, encrypted tunnel over a public network
CA new IP addressing scheme only
DA replacement for HTML
Answer is hidden
Question 493 of 748Ch 8 · Introduction to web technology
XHTML differs from ordinary HTML mainly because it:
ACannot be displayed in a browser
BIs a stricter, XML-compliant reformulation of HTML
CDoes not support tags at all
DOnly works with PHP
Answer is hidden
Question 494 of 748Ch 8 · Client and server-side scripting
JavaScript is best described as a:
AServer-side compiled language
BClient-side scripting language that runs in the browser
CDatabase query language
DMarkup language
Answer is hidden
Question 495 of 748Ch 8 · Client and server-side scripting
The DOM (Document Object Model) represents an HTML page as a:
AFlat text file
BTree of objects that scripts can read and modify
CCompiled binary
DDatabase table
Answer is hidden
Question 496 of 748Ch 8 · Client and server-side scripting
jQuery's element finder uses selector syntax similar to:
ASQL queries
BCSS selectors
CRegular expressions only
DXML schemas
Answer is hidden
Question 497 of 748Ch 8 · Client and server-side scripting
PHP code is typically executed:
AIn the user's browser
BOn the web server, before the page is sent to the client
COnly at compile time
DInside a database engine
Answer is hidden
Question 498 of 748Ch 8 · Client and server-side scripting
Which PHP superglobal is used to store data across multiple requests for a session?
A$GET
B$ₚₒₛₜ
C$SESSION
D$FILES
Answer is hidden
Question 499 of 748Ch 8 · Client and server-side scripting
CRUD operations in a PHP application typically refer to:
ACompile, Run, Update, Delete
BCreate, Read, Update, Delete
CConnect, Retrieve, Undo, Deploy
DCopy, Rename, Upload, Download
Answer is hidden
Question 500 of 748Ch 8 · Client and server-side scripting
Magic quotes, a legacy PHP feature, was intended to:
ASpeed up database queries
BAutomatically escape user input to help prevent SQL injection
CCompress uploaded files
DEncrypt session data
Answer is hidden
Question 501 of 748Ch 8 · Client and server-side scripting
Which PHP functions are commonly used to work with regular expressions?
Amail() and fopen()
Bpregmatch() and related preg_* functions
Csessionstart()
Darraymerge()
Answer is hidden
Question 502 of 748Ch 8 · Client and server-side scripting
A Content Management System (CMS) such as WordPress is commonly built using:
AOnly static HTML
BPHP and a database
COnly client-side JavaScript
DOnly XML
Answer is hidden
Question 503 of 748Ch 8 · Client and server-side scripting
Which of these is a jQuery method used for showing/hiding elements with a fade animation?
A.submit()
B.fadeIn()/.fadeOut()
C.pregmatch()
D.connect()
Answer is hidden
Question 504 of 748Ch 8 · JDBC
JDBC is used in Java applications primarily to:
ARender HTML pages
BConnect to and interact with relational databases using SQL
CCreate GUI components
DManage threads
Answer is hidden
Question 505 of 748Ch 8 · JDBC
Which JDBC driver type converts calls directly into the database's own network protocol and is the most widely used today?
AType 1
BType 2
CType 3
DType 4
Answer is hidden
Question 506 of 748Ch 8 · JDBC
Which driver type requires an ODBC driver installed on the client machine?
AType 1 (JDBC-ODBC Bridge)
BType 2 (Native-API)
CType 3 (Network Protocol)
DType 4 (Thin)
Answer is hidden
Question 507 of 748Ch 8 · JDBC
Which class manages the list of database drivers and establishes connections?
AResultSet
BDriverManager
CStatement
DSQLException
Answer is hidden
Question 508 of 748Ch 8 · JDBC
Which statement type is precompiled and supports parameters, making it faster for repeated execution?
AStatement
BPreparedStatement
CCallableStatement
DNone of these
Answer is hidden
Question 509 of 748Ch 8 · JDBC
Which statement type is specifically used to call a stored procedure?
AStatement
BPreparedStatement
CCallableStatement
DResultSet
Answer is hidden
Question 510 of 748Ch 8 · JDBC
Which method of a ResultSet moves the cursor to the next row of results?
AgetNext()
Bnext()
Cadvance()
DmoveNext()
Answer is hidden
Question 511 of 748Ch 8 · JDBC
Which JDBC object provides metadata about a ResultSet's columns, such as their names and count?
AConnection
BResultSetMetaData
CDriverManager
DSQLException
Answer is hidden
Question 512 of 748Ch 8 · JDBC
Which SQL operation corresponds to the 'Read' part of CRUD?
AINSERT
BSELECT
CUPDATE
DDELETE
Answer is hidden
Question 513 of 748Ch 8 · JDBC
Which method is used to execute a SQL SELECT query and obtain a ResultSet?
AexecuteUpdate()
BexecuteQuery()
CexecuteInsert()
DgetResult()
Answer is hidden
Question 514 of 748Ch 8 · Software Engineering & OOP
Which statement is TRUE about static member functions in C++?
AStatic functions can be overloaded
BStatic functions can access non-static members directly
CStatic functions require an object to be called
DStatic functions cannot have return values
Answer is hidden
Question 515 of 748Ch 8 · Software Engineering & OOP
For multiple inheritance in C++, how many base classes are required at minimum?
Answer is hidden
Question 516 of 748Ch 8 · Software Engineering & OOP
Which direction flag for the seekg()/seekp() stream functions is NOT valid in C++?
Aios::beg
Bios::cur
Cios::end
Dios::set
Answer is hidden
Question 517 of 748Ch 8 · Software Engineering & OOP
When does the Spiral Model of software development terminate?
AAfter the first prototype
BAfter all requirements are met
CAfter a fixed number of iterations
DWhen the product is cancelled or dies
Answer is hidden
Question 518 of 748Ch 8 · Software Engineering & OOP
SQA (Software Quality Assurance) combined with SQM (Software Quality Management) forms:
ASoftware Testing
BSoftware Verification
CSoftware Configuration Management
DSoftware Quality Processes
Answer is hidden
Question 519 of 748Ch 8 · Software Engineering & OOP
Software is best defined as:
AA set of executable programs only
BA set of programs, associated documentation, and configuration data
CHardware instructions stored in ROM
DAn operating system and its utilities
Answer is hidden
Question 520 of 748Ch 8 · Software Engineering & OOP
A Use Case describes interaction between:
AClasses and objects
BModules and components
CActor and the system (product)
DDatabase and application
Answer is hidden
Question 521 of 748Ch 8 · Software Engineering & OOP
CASE (Computer-Aided Software Engineering) tools are primarily used for:
AOnly code compilation
BOnly testing
CSupporting all phases of software development and project management
DDatabase administration only
Answer is hidden
Question 522 of 748Ch 8 · Software Engineering & OOP
Vertical lines (lifelines) in a UML Sequence Diagram represent:
AMethod calls
BObjects or actors
CTime intervals
DReturn values
Answer is hidden
Question 523 of 748Ch 8 · Software Engineering & OOP
In C++ templates, in the declaration template <class T>, T represents:
AA specific class name
BA template type parameter (placeholder for any type)
CA typedef alias
DA global variable
Answer is hidden
Question 524 of 748Ch 8 · Software Engineering & OOP
The primary purpose of C++ namespaces is to:
AAvoid naming conflicts and encapsulate code
BSpeed up compilation
CReplace header files
DManage memory allocation
Answer is hidden
Question 525 of 748Ch 8 · Software Engineering & OOP
Runtime polymorphism (late binding) in C++ is achieved through:
AFunction overloading
BVirtual functions
COperator overloading
DTemplates
Answer is hidden
Question 526 of 748Ch 8 · Software Engineering & OOP
The three main phases of Object-Oriented development are:
AAnalysis, Design, and Implementation
BRequirements, Coding, and Testing
CPlanning, Execution, and Closure
DModelling, Prototyping, and Deployment
Answer is hidden
Question 527 of 748Ch 8 · Software Engineering & OOP
Which SDLC model explicitly pairs each development phase with a testing phase in a V-shape?
AWaterfall Model
BV-Model (Verification and Validation)
CSpiral Model
DAgile Model
Answer is hidden
Question 528 of 748Ch 8 · Software Engineering & OOP
Version control systems are used primarily to:
ACompile source code
BTrack and manage multiple versions of code and files
CDebug runtime errors
DManage database schemas
Answer is hidden
Question 529 of 748Ch 8 · Software Engineering & OOP
The arrow notation in UML represents which relationship?
AAssociation
BAggregation
CGeneralisation (Inheritance)
DDependency
Answer is hidden
Question 530 of 748Ch 8 · Software Engineering & OOP
Which C/C++ keyword CANNOT be used as an identifier (variable name)?
Answer is hidden
Question 531 of 748Ch 8 · Software Engineering & OOP
The operator used to access a member of a structure through a pointer in C is:
Answer is hidden
Question 532 of 748Ch 8 · Software Engineering & OOP
Given classes A, B: public A, C: public B, the type of inheritance demonstrated is:
AMultiple inheritance
BMultilevel inheritance
CHierarchical inheritance
DHybrid inheritance
Answer is hidden
Question 533 of 748Ch 9 · Introduction to AI and intelligent agent
The term 'Artificial Intelligence' was formally coined at which event?
AThe Turing Test proposal
BThe 1956 Dartmouth Conference
CThe first computer science degree program
DThe invention of the perceptron
Answer is hidden
Question 534 of 748Ch 9 · Introduction to AI and intelligent agent
An agent's actuators are used to:
APerceive the environment
BAct upon the environment
CStore past percepts only
DCompute a utility function only
Answer is hidden
Question 535 of 748Ch 9 · Introduction to AI and intelligent agent
A simple reflex agent selects its actions based on:
AA model of the world and future goals
BOnly the current percept, using condition-action rules
CA utility function
DCommunication with other agents
Answer is hidden
Question 536 of 748Ch 9 · Introduction to AI and intelligent agent
Which type of agent maintains an internal state to handle partial observability?
ASimple reflex agent
BModel-based reflex agent
CRandom agent
DNone of the agent types
Answer is hidden
Question 537 of 748Ch 9 · Introduction to AI and intelligent agent
A utility-based agent is most useful when:
AThere is only one possible goal
BMultiple goals conflict and a trade-off/preference must be chosen
CThe environment is always deterministic
DNo actions are available
Answer is hidden
Question 538 of 748Ch 9 · Introduction to AI and intelligent agent
An environment where the outcome of an action is not fully predictable is called:
ADeterministic
BStochastic
CStatic
DFully observable
Answer is hidden
Question 539 of 748Ch 9 · Introduction to AI and intelligent agent
An environment that can change while the agent is still deciding on an action is called:
AStatic
BDynamic
CDeterministic
DSingle-agent
Answer is hidden
Question 540 of 748Ch 9 · Introduction to AI and intelligent agent
If an agent's sensors provide complete information about the current state, the environment is:
APartially observable
BFully observable
CStochastic
DMulti-agent
Answer is hidden
Question 541 of 748Ch 9 · Introduction to AI and intelligent agent
The 'acting humanly' perspective of AI is closely associated with:
AThe Turing Test
BBayesian networks
CGenetic algorithms
DBackpropagation
Answer is hidden
Question 542 of 748Ch 9 · Introduction to AI and intelligent agent
A goal-based agent differs from a simple reflex agent mainly by:
AHaving no actuators
BConsidering future consequences of actions to achieve a goal
CIgnoring all percepts
DNever using condition-action rules
Answer is hidden
Question 543 of 748Ch 9 · Problem solving and searching techniques
A Constraint Satisfaction Problem is defined by:
AStates and actions only
BVariables, domains, and constraints
CA utility function only
DA heuristic function only
Answer is hidden
Question 544 of 748Ch 9 · Problem solving and searching techniques
Which uninformed search strategy explores the search tree level by level?
ADFS
BBFS
CHill climbing
DA* search
Answer is hidden
Question 545 of 748Ch 9 · Problem solving and searching techniques
Depth-First Search generally uses:
AMore memory than BFS
BLess memory than BFS
CExactly the same memory as BFS
DNo memory at all
Answer is hidden
Question 546 of 748Ch 9 · Problem solving and searching techniques
Iterative Deepening Search combines the advantages of:
AOnly DFS
BOnly BFS
CBFS's completeness/optimality with DFS's low memory usage
DMinimax and alpha-beta pruning
Answer is hidden
Question 547 of 748Ch 9 · Problem solving and searching techniques
A* search selects the next node to expand based on:
AOnly the heuristic h(n)
BOnly the path cost g(n)
Cf(n) = g(n) + h(n)
DA random selection
Answer is hidden
Question 548 of 748Ch 9 · Problem solving and searching techniques
A* search is guaranteed to find the optimal solution when the heuristic is:
AAlways zero
BAdmissible (never overestimates the true cost)
CAlways an overestimate
DIgnored entirely
Answer is hidden
Question 549 of 748Ch 9 · Problem solving and searching techniques
Hill climbing search can fail to find the global optimum because it may get stuck at a:
AGlobal maximum
BLocal maximum
CStarting state only
DGoal state
Answer is hidden
Question 550 of 748Ch 9 · Problem solving and searching techniques
Simulated annealing differs from basic hill climbing by:
ANever accepting a worse move
BOccasionally accepting a worse move to escape local optima
CIgnoring the current state entirely
DOnly working on adversarial games
Answer is hidden
Question 551 of 748Ch 9 · Problem solving and searching techniques
The Minimax algorithm is used primarily for:
ASingle-agent path planning
BTwo-player adversarial (zero-sum) games
CClustering unlabeled data
DTraining neural networks
Answer is hidden
Question 552 of 748Ch 9 · Problem solving and searching techniques
Alpha-beta pruning improves minimax by:
AChanging the final decision to a suboptimal one
BSkipping branches that cannot affect the final decision, without changing the result
CRemoving the need for a game tree
DMaking the search less accurate
Answer is hidden
Question 553 of 748Ch 9 · Knowledge representation
A semantic network represents knowledge using:
AOnly numeric probabilities
BNodes (concepts) connected by labeled edges (relationships)
COnly if-then rules
DGenetic algorithm chromosomes
Answer is hidden
Question 554 of 748Ch 9 · Knowledge representation
A frame represents knowledge using:
ASlots and fillers
BOnly logical connectives
CA game tree
DA neural network layer
Answer is hidden
Question 555 of 748Ch 9 · Knowledge representation
A tautology in propositional logic is a formula that is:
AAlways false
BAlways true, regardless of interpretation
CSometimes true, sometimes false
DUndefined
Answer is hidden
Question 556 of 748Ch 9 · Knowledge representation
Resolution as an inference technique works by:
ADirectly guessing the answer
BConverting statements to clausal form and deriving a contradiction
CIgnoring all premises
DOnly working with fuzzy logic
Answer is hidden
Question 557 of 748Ch 9 · Knowledge representation
The symbol ∀ in First-Order Predicate Logic represents:
AExistential quantification ('there exists')
BUniversal quantification ('for all')
CLogical negation
DLogical implication
Answer is hidden
Question 558 of 748Ch 9 · Knowledge representation
Unification in FOPL is used to:
AFind a substitution that makes two expressions identical
BCompute a truth table
CBuild a semantic network
DTrain a neural network
Answer is hidden
Question 559 of 748Ch 9 · Knowledge representation
Bayes' Rule is expressed as:
AP(A|B) = P(A) + P(B)
BP(A|B) = P(B|A)P(A)/P(B)
CP(A|B) = P(A)/P(B) only
DP(A|B) = P(B) - P(A)
Answer is hidden
Question 560 of 748Ch 9 · Knowledge representation
A Bayesian network is structured as a:
ADirected acyclic graph (DAG) of variables and dependencies
BBinary search tree
CSimple linked list
DFully connected undirected graph only
Answer is hidden
Question 561 of 748Ch 9 · Knowledge representation
Reasoning in belief (Bayesian) networks typically involves computing:
AThe shortest path between nodes
BThe posterior probability of variables given evidence
CA minimax value
DA fitness function
Answer is hidden
Question 562 of 748Ch 9 · Knowledge representation
Which of these is an issue commonly identified in knowledge representation?
AChoosing the correct programming language
BChoosing the right granularity and structure for representing knowledge
CDetermining CPU clock speed
DSelecting a network topology
Answer is hidden
Question 563 of 748Ch 9 · Expert system and natural language processing
The component of an expert system that applies rules to derive new conclusions is the:
AKnowledge base
BInference engine
CUser interface
DExplanation facility
Answer is hidden
Question 564 of 748Ch 9 · Expert system and natural language processing
'Knowing how to ride a bicycle' is an example of:
ADeclarative knowledge
BProcedural knowledge
CSemantic knowledge only
DNo knowledge type
Answer is hidden
Question 565 of 748Ch 9 · Expert system and natural language processing
Which expert system component explains the reasoning behind its conclusions?
AKnowledge base
BExplanation facility
CKnowledge acquisition module
DInference engine only
Answer is hidden
Question 566 of 748Ch 9 · Expert system and natural language processing
The step in NLP that involves breaking text into individual words/tokens is called:
ASemantic analysis
BLexical analysis
CPragmatic analysis
DDiscourse integration
Answer is hidden
Question 567 of 748Ch 9 · Expert system and natural language processing
Generating human-readable text from structured data is the task of:
ANatural Language Understanding (NLU)
BNatural Language Generation (NLG)
CMachine vision
DGenetic algorithms
Answer is hidden
Question 568 of 748Ch 9 · Expert system and natural language processing
Ambiguity in language (a word or sentence having multiple meanings) is considered a:
ABenefit of NLP systems
BMajor challenge in NLP
CNon-issue in NLP
DOnly a speech recognition issue
Answer is hidden
Question 569 of 748Ch 9 · Expert system and natural language processing
Which stage of machine vision involves isolating regions of interest in an image?
AImage acquisition
BSegmentation
CPreprocessing only
DFeature extraction only
Answer is hidden
Question 570 of 748Ch 9 · Expert system and natural language processing
Robotics combines AI with which other disciplines?
AOnly pure mathematics
BMechanical engineering and electronics
COnly linguistics
DOnly databases
Answer is hidden
Question 571 of 748Ch 9 · Expert system and natural language processing
Knowledge acquisition in expert system development refers to:
ADeleting outdated rules
BExtracting and structuring expert knowledge into the knowledge base
CRunning the inference engine
DOnly user interface design
Answer is hidden
Question 572 of 748Ch 9 · Expert system and natural language processing
A knowledge engineer's primary role in expert system development is to:
AWrite the final report only
BWork with domain experts to elicit and encode their knowledge
COnly design the graphical interface
DOptimize hardware performance
Answer is hidden
Question 573 of 748Ch 9 · Machine learning
Supervised learning requires training data that is:
AUnlabeled
BLabeled with known input-output pairs
CRandomly generated only
DAlways numeric
Answer is hidden
Question 574 of 748Ch 9 · Machine learning
Which learning paradigm finds patterns in unlabeled data (e.g., clustering)?
ASupervised learning
BUnsupervised learning
CReinforcement learning
DGenetic learning
Answer is hidden
Question 575 of 748Ch 9 · Machine learning
In reinforcement learning, an agent learns by:
AUsing only labeled datasets
BReceiving rewards or penalties from interacting with an environment
CClustering data points
DApplying fuzzy logic rules
Answer is hidden
Question 576 of 748Ch 9 · Machine learning
A decision tree typically chooses attribute splits based on:
ARandom selection
BInformation gain (or entropy reduction)
CFuzzy membership values
DGenetic crossover
Answer is hidden
Question 577 of 748Ch 9 · Machine learning
The Naive Bayes classifier assumes that features are:
APerfectly correlated
BConditionally independent given the class
CAlways continuous
DIrrelevant to classification
Answer is hidden
Question 578 of 748Ch 9 · Machine learning
In a Fuzzy Inference System, the process of converting a crisp input into a fuzzy value is called:
ADefuzzification
BFuzzification
CSelection
DCrossover
Answer is hidden
Question 579 of 748Ch 9 · Machine learning
Converting the fuzzy output of an inference system back into a crisp value is called:
AFuzzification
BDefuzzification
CMutation
DEncoding
Answer is hidden
Question 580 of 748Ch 9 · Machine learning
Which of these is a well-known fuzzy inference method?
AMamdani method
BBackpropagation method
CMinimax method
DA* method
Answer is hidden
Question 581 of 748Ch 9 · Machine learning
In a Genetic Algorithm, the operator that combines parts of two parent chromosomes is called:
ASelection
BCrossover
CMutation
DFitness evaluation
Answer is hidden
Question 582 of 748Ch 9 · Machine learning
The fitness function in a Genetic Algorithm is used to:
ASelect the encoding scheme
BEvaluate how good a candidate solution is
CPerform defuzzification
DConvert labels to features
Answer is hidden
Question 583 of 748Ch 9 · Neural networks
The McCulloch-Pitts neuron is best described as:
AA modern deep learning architecture
BAn early binary threshold model of a neuron
CA fuzzy inference system
DA genetic algorithm operator
Answer is hidden
Question 584 of 748Ch 9 · Neural networks
In an artificial neuron, the activation function is applied to:
AThe raw input values only
BThe weighted sum of the inputs
CThe learning rate
DThe fitness function
Answer is hidden
Question 585 of 748Ch 9 · Neural networks
Which activation function outputs values strictly between 0 and 1?
AReLU
BSigmoid
CStep function only
DLinear function
Answer is hidden
Question 586 of 748Ch 9 · Neural networks
A single-layer Perceptron can correctly classify data that is:
ANon-linearly separable only
BLinearly separable
CAlways randomly distributed
DNever classifiable
Answer is hidden
Question 587 of 748Ch 9 · Neural networks
Gradient descent updates a neural network's weights by moving:
AIn a random direction
BIn the direction that increases the error
CIn the direction that most reduces the error (negative gradient)
DOnly after training is complete
Answer is hidden
Question 588 of 748Ch 9 · Neural networks
Hebbian learning is summarized by the principle:
A'The strongest neuron wins'
B'Neurons that fire together, wire together'
C'Error must always be zero'
D'Only output neurons learn'
Answer is hidden
Question 589 of 748Ch 9 · Neural networks
The Adaline model differs from the basic Perceptron mainly by using:
AA step activation function during training
BA linear activation function trained with the delta rule
CNo activation function at all
DOnly unsupervised learning
Answer is hidden
Question 590 of 748Ch 9 · Neural networks
A Multilayer Perceptron (MLP) is capable of solving problems that a single-layer perceptron cannot, mainly because it has:
AMore output neurons only
BOne or more hidden layers enabling non-linear decision boundaries
CNo activation function
DOnly linear connections
Answer is hidden
Question 591 of 748Ch 9 · Neural networks
The Backpropagation algorithm trains a neural network by:
APropagating error backward through the network to update weights via gradient descent
BRandomly guessing weights until correct
COnly adjusting the input layer
DIgnoring the output error
Answer is hidden
Question 592 of 748Ch 9 · Neural networks
A Hopfield network is primarily used as a(n):
AFeedforward classifier only
BAssociative (content-addressable) memory
CGenetic algorithm encoder
DFuzzy inference engine
Answer is hidden
Question 593 of 748Ch 9 · Information Theory & Signals
The Fourier Transform is used to:
AConvert a signal from the time domain to the frequency domain
BConvert a signal from the frequency domain to the time domain
CCompress digital signals
DEncrypt data transmissions
Answer is hidden
Question 594 of 748Ch 9 · Information Theory & Signals
When a square wave is applied to an integrator op-amp circuit, the output is:
ASquare wave
BSine wave
CTriangle wave
DSawtooth wave
Answer is hidden
Question 595 of 748Ch 9 · Information Theory & Signals
The Z-transform is primarily used for:
AAnalysing continuous-time signals
BAnalysing discrete-time signals and systems
CImage compression
DFrequency modulation
Answer is hidden
Question 596 of 748Ch 9 · Information Theory & Signals
Interleaving in digital communications provides what type of diversity?
ATime diversity
BFrequency diversity
CSpace diversity
DPolarization diversity
Answer is hidden
Question 597 of 748Ch 9 · Information Theory & Signals
In FDM, increasing the modulation index results in:
ADecreased bandwidth requirements
BIncreased bandwidth requirements
CNo change in bandwidth
DIncreased signal-to-noise ratio without bandwidth change
Answer is hidden
Question 598 of 748Ch 9 · Information Theory & Signals
Adding zeros to the end of a discrete signal before taking its DFT is called:
AZero Padding
BWindowing
CDecimation
DInterpolation
Answer is hidden
Question 599 of 748Ch 9 · Information Theory & Signals
In TDM (Time Division Multiplexing), the component essential for recovering individual channels at the receiver is:
AEqualizer
BFrame synchronization
CBandwidth filter
DDemodulator
Answer is hidden
Question 600 of 748Ch 9 · Information Theory & Signals
In a common-collector (emitter follower) BJT amplifier, the phase relationship between input and output is:
A180 degrees (inverted)
B90 degrees
C0 degrees (in phase)
D45 degrees
Answer is hidden
Question 601 of 748Ch 9 · Introduction to real time system and real time scheduling
A real-time system's correctness depends on:
AOnly the logical correctness of results
BBoth the logical correctness of results and the time they are produced
COnly the speed of the CPU
DOnly the amount of memory available
Answer is hidden
Question 602 of 748Ch 9 · Introduction to real time system and real time scheduling
In a hard real-time system, missing a deadline is considered:
AA minor inconvenience
BA catastrophic failure
CAlways acceptable
DIrrelevant to system correctness
Answer is hidden
Question 603 of 748Ch 9 · Introduction to real time system and real time scheduling
Which real-time scheduling approach relies on a static, precomputed schedule?
APriority-driven scheduling
BClock-driven scheduling
CWeighted round-robin only
DBest-effort scheduling
Answer is hidden
Question 604 of 748Ch 9 · Introduction to real time system and real time scheduling
Which algorithm assigns dynamic priority based on the nearest absolute deadline?
ARate Monotonic
BEarliest-Deadline-First (EDF)
CWeighted Round-Robin
DClock-driven scheduling
Answer is hidden
Question 605 of 748Ch 9 · Introduction to real time system and real time scheduling
EDF is optimal in the sense that:
AIt always uses the least memory
BIt is optimal among all algorithms for uniprocessor preemptive scheduling
CIt requires no knowledge of deadlines
DIt only works for aperiodic jobs
Answer is hidden
Question 606 of 748Ch 9 · Introduction to real time system and real time scheduling
The Rate Monotonic algorithm assigns priority based on:
ATask deadline only
BTask period, with shorter period getting higher priority
CRandom assignment
DTask arrival order
Answer is hidden
Question 607 of 748Ch 9 · Introduction to real time system and real time scheduling
Which algorithm is optimal specifically among FIXED-priority algorithms for periodic tasks?
AEDF
BLST
CRate Monotonic
DWeighted Round-Robin
Answer is hidden
Question 608 of 748Ch 9 · Introduction to real time system and real time scheduling
Least-Slack-Time-first (LST) scheduling prioritizes the task with:
AThe most slack time
BThe least slack time
CThe shortest execution time regardless of deadline
DThe earliest release time only
Answer is hidden
Question 609 of 748Ch 9 · Introduction to real time system and real time scheduling
A sporadic job differs from an aperiodic job mainly because it has:
ANo timing requirements at all
BA hard deadline and a minimum inter-arrival time
CA fixed period like periodic tasks
DOnly soft deadlines
Answer is hidden
Question 610 of 748Ch 9 · Introduction to real time system and real time scheduling
Offline scheduling differs from online scheduling in that it:
AMakes all decisions at run time as tasks arrive
BComputes the schedule in advance, before execution begins
CCannot be used for real-time systems
DRequires no scheduling algorithm at all
Answer is hidden
Question 611 of 748Ch 9 · Resources sharing and real time communication
Priority inversion occurs when:
AA high-priority task runs before a low-priority task, as expected
BA lower-priority task holding a resource blocks a higher-priority task waiting for it
CTwo tasks have identical priorities
DA task has no assigned priority
Answer is hidden
Question 612 of 748Ch 9 · Resources sharing and real time communication
The Basic Priority-Inheritance Protocol addresses blocking by:
ATerminating the blocking task
BTemporarily raising the blocking task's priority to that of the task it is blocking
CPreventing any task from ever blocking
DIgnoring priority altogether
Answer is hidden
Question 613 of 748Ch 9 · Resources sharing and real time communication
In the Priority-Ceiling Protocol, a resource's 'ceiling' is defined as:
AThe lowest priority of any task using it
BThe highest priority of any task that may lock it
CA fixed system-wide constant
DThe number of tasks waiting for it
Answer is hidden
Question 614 of 748Ch 9 · Resources sharing and real time communication
One major benefit of the Priority-Ceiling Protocol is that it:
AEliminates the need for any locking
BPrevents deadlock and bounds blocking to at most one critical section
COnly works for aperiodic tasks
DRequires unlimited memory
Answer is hidden
Question 615 of 748Ch 9 · Resources sharing and real time communication
Non-preemptive critical sections are a simple RAC approach where:
AA task can always be preempted at any time
BA task cannot be preempted once it enters a critical section, until it exits
CCritical sections are never used
DOnly the highest-priority task may ever enter a critical section
Answer is hidden
Question 616 of 748Ch 9 · Resources sharing and real time communication
Hard real-time communication is characterized by:
ABest-effort delivery only
BGuaranteed message delivery within a specified deadline
CNo timing requirements
DDelivery only over wireless networks
Answer is hidden
Question 617 of 748Ch 9 · Resources sharing and real time communication
Weighted Round-Robin (WRR) as a network service discipline is used to:
ARandomly drop packets
BShare bandwidth among flows according to assigned weights
CAlways give equal bandwidth to all flows regardless of priority
DEncrypt network traffic
Answer is hidden
Question 618 of 748Ch 9 · Resources sharing and real time communication
Which protocol type governs how nodes share access to a common broadcast transmission medium?
AResource Reservation Protocols
BMedium Access Control (MAC) protocols
CPriority Inheritance Protocols
DFile Transfer Protocols
Answer is hidden
Question 619 of 748Ch 9 · Resources sharing and real time communication
RSVP (Resource Reservation Protocol) is used on the internet to:
ACompress data packets
BReserve bandwidth/resources along a path to provide QoS guarantees
CEncrypt all internet traffic
DAssign IP addresses
Answer is hidden
Question 620 of 748Ch 9 · Resources sharing and real time communication
The Stack-Based Priority-Ceiling Protocol is specifically designed for:
ADynamic-priority systems only
BFixed-priority systems using a single shared run-time stack
CSystems with no shared resources
DWireless networks only
Answer is hidden
Question 621 of 748Ch 9 · Introduction to distributed systems and cloud computing
A distributed system is best described as:
AA single powerful computer
BIndependent computers that appear as one coherent system via message passing
CA system with no network connection
DA purely theoretical concept
Answer is hidden
Question 622 of 748Ch 9 · Introduction to distributed systems and cloud computing
Which of the following is NOT typically listed as a characteristic of distributed systems?
AResource sharing
BA single global clock shared by all nodes
CFault tolerance
DConcurrency
Answer is hidden
Question 623 of 748Ch 9 · Introduction to distributed systems and cloud computing
Which model of distributed systems has no central server, with nodes communicating directly?
AClient-Server model
BPeer-to-Peer (P2P) model
CThree-tier model
DMainframe model
Answer is hidden
Question 624 of 748Ch 9 · Introduction to distributed systems and cloud computing
Cluster computing is typically characterized by:
ALoosely coupled nodes spread across organizations
BTightly coupled, homogeneous nodes in close proximity with a high-speed interconnect
CNo interconnect between nodes
DNodes that never communicate
Answer is hidden
Question 625 of 748Ch 9 · Introduction to distributed systems and cloud computing
Grid computing differs from cluster computing mainly in that grid computing is:
AAlways faster
BLoosely coupled and often spans multiple organizations geographically
CLimited to a single machine
DNot networked at all
Answer is hidden
Question 626 of 748Ch 9 · Introduction to distributed systems and cloud computing
Which of the following is one of the five desired features of cloud computing (per NIST)?
AFixed, non-elastic resources
BRapid elasticity
CManual-only self-service
DNo network access required
Answer is hidden
Question 627 of 748Ch 9 · Introduction to distributed systems and cloud computing
Cloud computing's roots can be traced back to:
AGrid computing, utility computing, virtualization, and SOA
BOnly punch-card systems
COnly mainframe batch processing
DOnly desktop computing
Answer is hidden
Question 628 of 748Ch 9 · Introduction to distributed systems and cloud computing
A major risk associated with cloud computing is:
AGuaranteed zero downtime
BVendor lock-in and dependency on the provider
CComplete elimination of security concerns
DNo need for an internet connection
Answer is hidden
Question 629 of 748Ch 9 · Introduction to distributed systems and cloud computing
Which of these is a key benefit of cloud computing?
ARequires large upfront infrastructure investment
BCost savings via pay-as-you-go pricing and elastic scalability
CWorks only without an internet connection
DRemoves the need for any security measures
Answer is hidden
Question 630 of 748Ch 9 · Introduction to distributed systems and cloud computing
A key challenge in resource sharing over the web is:
APerfect homogeneity of all systems
BHeterogeneity of hardware/software across different systems
CThe complete absence of security concerns
DUnlimited bandwidth everywhere
Answer is hidden
Question 631 of 748Ch 9 · Distributed file system and CORBA
RPC (Remote Procedure Call) allows a program to:
AOnly execute procedures on the local machine
BCall a procedure on a remote machine as if it were local
CDelete files on a remote server
DBypass all network protocols
Answer is hidden
Question 632 of 748Ch 9 · Distributed file system and CORBA
In a File Service Architecture, which component maps human-readable file names to file identifiers?
AFlat File Service
BDirectory Service
CClient Module
DObject Request Broker
Answer is hidden
Question 633 of 748Ch 9 · Distributed file system and CORBA
Sun NFS classic versions (NFSv2/v3) follow which server design?
AStateful server
BStateless server
CNo server design at all
DPeer-to-peer only
Answer is hidden
Question 634 of 748Ch 9 · Distributed file system and CORBA
DNS (Domain Name System) is best described as:
AA file transfer protocol
BThe internet's hierarchical, distributed name service mapping domain names to IP addresses
CA cloud storage service
DA type of firewall
Answer is hidden
Question 635 of 748Ch 9 · Distributed file system and CORBA
Middleware in a distributed system primarily serves to:
AReplace the need for a network entirely
BProvide common services that abstract away heterogeneity among system components
CEncrypt all network data automatically
DAct only as a user interface
Answer is hidden
Question 636 of 748Ch 9 · Distributed file system and CORBA
CORBA's Interface Definition Language (IDL) is used to:
AWrite the entire application in one specific language
BDescribe object interfaces independent of any specific programming language
CEncrypt network traffic
DReplace the Object Request Broker
Answer is hidden
Question 637 of 748Ch 9 · Distributed file system and CORBA
The component in CORBA responsible for routing method calls between distributed objects is the:
ADirectory Service
BObject Request Broker (ORB)
CDNS server
DFile Service
Answer is hidden
Question 638 of 748Ch 9 · Distributed file system and CORBA
Which of these is a standard CORBA service?
AHTTP Service
BNaming Service
CDHCP Service
DCompiler Service
Answer is hidden
Question 639 of 748Ch 9 · Distributed file system and CORBA
A discovery service in a distributed system is used to:
APermanently delete unused files
BLet clients dynamically locate available services on a network
CEncrypt file contents
DCompile source code remotely
Answer is hidden
Question 640 of 748Ch 9 · Distributed file system and CORBA
Comparing different DFS implementations, such as NFS and AFS, typically considers differences in:
AOnly their marketing names
BCaching strategy, consistency model, and scalability
CThe color of their logos
DOnly their release year
Answer is hidden
Question 641 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
A Type 1 (bare-metal) hypervisor:
ARuns on top of a host operating system
BRuns directly on the physical hardware
CCannot host multiple virtual machines
DIs only used for desktop virtualization
Answer is hidden
Question 642 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Which type of virtualization allows an application to run in an isolated environment without being fully installed on the local OS?
AServer virtualization
BDesktop virtualization
CApplication virtualization
DNetwork virtualization
Answer is hidden
Question 643 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
A private cloud is characterized by:
AShared infrastructure open to any customer
BDedicated infrastructure for a single organization
CNo security controls at all
DBeing accessible only via a hybrid model
Answer is hidden
Question 644 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Which cloud service model provides virtualized computing infrastructure such as servers and storage?
Answer is hidden
Question 645 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Google App Engine is a well-known example of which cloud service model?
AIaaS
BPaaS
CSaaS
DNone of these
Answer is hidden
Question 646 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Which cloud deployment model combines both public and private cloud resources?
APublic cloud
BPrivate cloud
CHybrid cloud
DCommunity cloud (not covered here)
Answer is hidden
Question 647 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Dynamic resource provisioning differs from static provisioning because it:
AAllocates fixed resources in advance that never change
BAllocates/releases resources on demand based on actual usage
CCannot be used in cloud computing
DRequires manual reconfiguration for every request
Answer is hidden
Question 648 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Cloud infrastructure security must be addressed at which levels?
AOnly the application level
BNetwork, host, and application levels
COnly the hardware level
DOnly the database level
Answer is hidden
Question 649 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Which of the following is a key privacy issue specific to cloud computing?
AData ownership and jurisdiction over where data is stored
BThe color scheme of the cloud dashboard
CThe speed of the local CPU
DThe type of monitor used
Answer is hidden
Question 650 of 748Ch 9 · Virtualization, cloud architecture, services and storage and cloud security
Multi-tenancy in cloud computing refers to:
AA single customer using dedicated hardware only
BMultiple customers sharing the same underlying physical infrastructure
CA cloud with no other users
DA type of encryption algorithm
Answer is hidden
Question 651 of 748Ch 9 · Agreement in distributed system
Why is clock synchronization needed in a distributed system?
AAll nodes already share one perfect physical clock
BEach node's local clock can drift, and there is no global clock
CSynchronization is never needed in distributed systems
DIt is only needed for centralized systems
Answer is hidden
Question 652 of 748Ch 9 · Agreement in distributed system
Lamport's logical clocks order events using which relation?
AThe 'happens-before' relation
BPhysical GPS time
CA single centralized timestamp authority
DRandom ordering
Answer is hidden
Question 653 of 748Ch 9 · Agreement in distributed system
Which physical clock synchronization algorithm has a coordinator poll all nodes and compute an average time?
ACristian's algorithm
BBerkeley algorithm
CLamport's algorithm
DVector clock algorithm
Answer is hidden
Question 654 of 748Ch 9 · Agreement in distributed system
In centralized distributed mutual exclusion, the main drawback is:
AIt is too complex to implement
BThe single coordinator is a potential bottleneck/single point of failure
CIt requires a token to circulate
DIt cannot guarantee mutual exclusion at all
Answer is hidden
Question 655 of 748Ch 9 · Agreement in distributed system
Which distributed mutual exclusion approach uses a circulating token, allowing only its holder to enter the critical section?
ACentralized approach
BToken-based approach
CVector clock approach
DBerkeley approach
Answer is hidden
Question 656 of 748Ch 9 · Agreement in distributed system
The Ricart-Agrawala algorithm is an example of which type of mutual exclusion approach?
ACentralized
BToken-based
CDistributed, non-token-based (message exchange with timestamps)
DPhysical clock synchronization
Answer is hidden
Question 657 of 748Ch 9 · Agreement in distributed system
A fault-tolerant system continues to operate correctly despite failures mainly through the use of:
ARedundancy
BEliminating all backups
CIgnoring failed components permanently
DRemoving replication
Answer is hidden
Question 658 of 748Ch 9 · Agreement in distributed system
In active replication, how do replicas handle incoming requests?
AOnly one replica ever processes requests
BAll replicas independently process every request in parallel
CReplicas never communicate
DRequests are discarded randomly
Answer is hidden
Question 659 of 748Ch 9 · Agreement in distributed system
In passive replication, which replica processes client requests?
AAll replicas simultaneously
BOnly a single primary replica, which then updates the backups
CNo replica processes requests
DA randomly chosen replica each time
Answer is hidden
Question 660 of 748Ch 9 · Agreement in distributed system
Quorum-based replication considers an operation successful only when:
AA single replica acknowledges it
BNo replicas acknowledge it
CA sufficient quorum (majority) of replicas acknowledge it
DThe operation is never acknowledged
Answer is hidden
Question 661 of 748Ch 9 · Information Theory & Signals
The Fourier Transform is used to:
AConvert a signal from the time domain to the frequency domain
BConvert a signal from the frequency domain to the time domain
CCompress digital signals
DEncrypt data transmissions
Answer is hidden
Question 662 of 748Ch 9 · Information Theory & Signals
When a square wave is applied to an integrator op-amp circuit, the output is:
ASquare wave
BSine wave
CTriangle wave
DSawtooth wave
Answer is hidden
Question 663 of 748Ch 9 · Information Theory & Signals
The Z-transform is primarily used for:
AAnalysing continuous-time signals
BAnalysing discrete-time signals and systems
CImage compression
DFrequency modulation
Answer is hidden
Question 664 of 748Ch 9 · Information Theory & Signals
Interleaving in digital communications provides what type of diversity?
ATime diversity
BFrequency diversity
CSpace diversity
DPolarization diversity
Answer is hidden
Question 665 of 748Ch 9 · Information Theory & Signals
In FDM, increasing the modulation index results in:
ADecreased bandwidth requirements
BIncreased bandwidth requirements
CNo change in bandwidth
DIncreased signal-to-noise ratio without bandwidth change
Answer is hidden
Question 666 of 748Ch 9 · Information Theory & Signals
Adding zeros to the end of a discrete signal before taking its DFT is called:
AZero Padding
BWindowing
CDecimation
DInterpolation
Answer is hidden
Question 667 of 748Ch 9 · Information Theory & Signals
In TDM (Time Division Multiplexing), the component essential for recovering individual channels at the receiver is:
AEqualizer
BFrame synchronization
CBandwidth filter
DDemodulator
Answer is hidden
Question 668 of 748Ch 9 · Information Theory & Signals
In a common-collector (emitter follower) BJT amplifier, the phase relationship between input and output is:
A180 degrees (inverted)
B90 degrees
C0 degrees (in phase)
D45 degrees
Answer is hidden
Question 669 of 748Ch 10 · Engineering Drawings and its Concepts
In an isometric projection, the three axes are drawn at:
A90 degrees
B120 degrees
C45 degrees
D60 degrees
Answer is hidden
Question 670 of 748Ch 10 · Engineering Drawings and its Concepts
A scale of 1:2 means the drawing is:
ATwice the object size
BHalf the object size
CEqual to the object
DFour times the size
Answer is hidden
Question 671 of 748Ch 10 · Engineering Drawings and its Concepts
Hidden edges in an engineering drawing are shown using:
AContinuous thick lines
BDashed lines
CCentre lines
DDimension lines
Answer is hidden
Question 672 of 748Ch 10 · Engineering Drawings and its Concepts
Which projection shows true dimensions using front, top and side views?
AIsometric
BOrthographic
CPerspective
DOblique
Answer is hidden
Question 673 of 748Ch 10 · Engineering Drawings and its Concepts
Which standard drawing sheet size is the largest?
Answer is hidden
Question 674 of 748Ch 10 · Engineering Drawings and its Concepts
A sectional view is used to show:
AThe exterior only
BInternal features of an object
CColor
DMaterial cost
Answer is hidden
Question 675 of 748Ch 10 · Engineering Drawings and its Concepts
A scale of 2:1 indicates the drawing is:
AHalf size
BFull size
CEnlarged (twice the object)
DOne quarter size
Answer is hidden
Question 676 of 748Ch 10 · Engineering Drawings and its Concepts
Nepal and most of Europe use which projection system?
AThird-angle
BFirst-angle
CIsometric only
DOblique only
Answer is hidden
Question 677 of 748Ch 10 · Engineering Drawings and its Concepts
Centre lines in a drawing are typically shown as:
AThick continuous lines
BChain (dash-dot) lines
CDashed lines
DWavy lines
Answer is hidden
Question 678 of 748Ch 10 · Engineering Drawings and its Concepts
A pictorial projection primarily provides:
AA 2D multiview
BA 3D-like single view of the object
CCost data
DA circuit diagram
Answer is hidden
Question 679 of 748Ch 10 · Engineering Economics
The principle that money available now is worth more than the same amount later is the:
AInflation rate
BTime value of money
CDepreciation
DSalvage value
Answer is hidden
Question 680 of 748Ch 10 · Engineering Economics
A project is generally acceptable if its Net Present Value (NPV) is:
ALess than zero
BEqual to zero
CGreater than zero
DNegative
Answer is hidden
Question 681 of 748Ch 10 · Engineering Economics
The Internal Rate of Return (IRR) is the discount rate at which NPV equals:
AOne
BZero
CInfinity
DThe investment
Answer is hidden
Question 682 of 748Ch 10 · Engineering Economics
The compound interest future value formula is:
AF = P + i + n
BF = P(1 + i)ⁿ
CF = P·i·n
DF = P / n
Answer is hidden
Question 683 of 748Ch 10 · Engineering Economics
AMaximum Allowed Return Rate
BMinimum Acceptable Rate of Return
CMean Average Return Rate
DMarginal Asset Recovery Rate
Answer is hidden
Question 684 of 748Ch 10 · Engineering Economics
The payback period measures the time required to:
ADouble the investment
BRecover the initial investment
CPay taxes
DDepreciate fully
Answer is hidden
Question 685 of 748Ch 10 · Engineering Economics
Straight-line depreciation is calculated as:
A(Cost + Salvage) / Life
B(Cost − Salvage) / Useful life
CCost × Life
DCost / Salvage
Answer is hidden
Question 686 of 748Ch 10 · Engineering Economics
A project with an IRR greater than the MARR should generally be:
ARejected
BAccepted
CIgnored
DDelayed indefinitely
Answer is hidden
Question 687 of 748Ch 10 · Engineering Economics
A benefit-cost (B/C) ratio greater than 1 indicates the project is:
AUnacceptable
BEconomically acceptable
CBreak-even only
DLoss-making
Answer is hidden
Question 688 of 748Ch 10 · Engineering Economics
The decrease in the value of an asset over time is called:
AAppreciation
BDepreciation
CInflation
DInterest
Answer is hidden
Question 689 of 748Ch 10 · Project Planning and Scheduling
A horizontal bar chart used to show a project schedule is a:
APERT chart
BGantt chart
CPie chart
DFlow chart
Answer is hidden
Question 690 of 748Ch 10 · Project Planning and Scheduling
The critical path in a project network is the:
AShortest path
BLongest path determining minimum duration
CCheapest path
DPath with most resources
Answer is hidden
Question 691 of 748Ch 10 · Project Planning and Scheduling
Tasks on the critical path have a float (slack) of:
AMaximum
BZero
COne day
DNegative
Answer is hidden
Question 692 of 748Ch 10 · Project Planning and Scheduling
PERT uses how many time estimates for each activity?
Answer is hidden
Question 693 of 748Ch 10 · Project Planning and Scheduling
The PERT expected time is calculated as:
A(O + M + P)/3
B(O + 4M + P)/6
C(O + P)/2
DO × M × P
Answer is hidden
Question 694 of 748Ch 10 · Project Planning and Scheduling
Which technique is deterministic (uses single time estimates)?
APERT
BCPM
CMonte Carlo
DGantt only
Answer is hidden
Question 695 of 748Ch 10 · Project Planning and Scheduling
Float (slack) is the amount of time an activity can be delayed without:
AIncreasing cost
BDelaying the project
CAdding resources
DChanging scope
Answer is hidden
Question 696 of 748Ch 10 · Project Planning and Scheduling
The final phase of the project life cycle is:
AInitiation
BPlanning
CExecution
DClosure
Answer is hidden
Question 697 of 748Ch 10 · Project Planning and Scheduling
PERT is best described as a ____ scheduling technique.
ADeterministic
BProbabilistic
CFinancial
DGraphical only
Answer is hidden
Question 698 of 748Ch 10 · Project Planning and Scheduling
Smoothing resource usage over the project duration is called:
ACrashing
BResource levelling
CFast-tracking
DOutsourcing
Answer is hidden
Question 699 of 748Ch 10 · Project Management
The triple constraint (iron triangle) of project management consists of:
AScope, Time, Cost
BPeople, Process, Product
CRisk, Reward, Resource
DPlan, Do, Check
Answer is hidden
Question 700 of 748Ch 10 · Project Management
A formal invitation to contractors to submit bids is called a:
AContract
BTender
CWarranty
DLicense
Answer is hidden
Question 701 of 748Ch 10 · Project Management
Transferring a risk to a third party (e.g., insurance) is a risk:
AAvoidance
BTransfer
CAcceptance
DMitigation
Answer is hidden
Question 702 of 748Ch 10 · Project Management
A legally binding agreement between client and contractor is a:
ATender
BContract
CBid
DNotice
Answer is hidden
Question 703 of 748Ch 10 · Project Management
In a lump-sum contract, the contractor is paid:
APer unit of work
BA fixed total price
CCost plus a fee
DHourly only
Answer is hidden
Question 704 of 748Ch 10 · Project Management
Which is NOT a standard risk response strategy?
AAvoid
BTransfer
CMitigate
DIgnore permanently
Answer is hidden
Question 705 of 748Ch 10 · Project Management
The first step in risk management is to:
ARespond to risk
BIdentify risks
CClose the project
DSign the contract
Answer is hidden
Question 706 of 748Ch 10 · Project Management
In project management, quality typically sits:
AOutside the triangle
BAt the centre of the triple constraint
CAbove scope only
DBelow cost only
Answer is hidden
Question 707 of 748Ch 10 · Project Management
A cost-plus contract pays the contractor:
AA fixed lump sum
BActual cost plus an agreed fee
CPer item rate only
DNothing until completion
Answer is hidden
Question 708 of 748Ch 10 · Project Management
Evaluating submitted bids to select a contractor is part of the:
AClosure phase
BTender/procurement process
CDepreciation calculation
DDrawing process
Answer is hidden
Question 709 of 748Ch 10 · Engineering Professional Practice
The paramount obligation of an engineer is to:
AMaximise profit
BHold public safety, health and welfare paramount
CPlease the employer
DFinish quickly
Answer is hidden
Question 710 of 748Ch 10 · Engineering Professional Practice
EIA in engineering practice stands for:
AEngineering Investment Analysis
BEnvironmental Impact Assessment
CEconomic Inflation Adjustment
DElectrical Installation Audit
Answer is hidden
Question 711 of 748Ch 10 · Engineering Professional Practice
Meeting present needs without compromising future generations defines:
ADepreciation
BSustainable development
COutsourcing
DPrivatisation
Answer is hidden
Question 712 of 748Ch 10 · Engineering Professional Practice
An engineer should practise:
AIn any field regardless of training
BOnly within their area of competence
CWithout regulation
DOnly for profit
Answer is hidden
Question 713 of 748Ch 10 · Engineering Professional Practice
OHS in the workplace stands for:
AOffice Hardware Standards
BOccupational Health and Safety
COperational Hazard System
DOverhead Service
Answer is hidden
Question 714 of 748Ch 10 · Engineering Professional Practice
ANepal Electricity Authority
BNepal Engineers' Association
CNational Engineering Audit
DNepal Energy Agency
Answer is hidden
Question 715 of 748Ch 10 · Engineering Professional Practice
A situation where personal interest conflicts with professional duty is a:
AConflict of interest
BSustainable practice
CTender
DContract
Answer is hidden
Question 716 of 748Ch 10 · Engineering Professional Practice
Offering or accepting bribes in engineering practice is:
AAcceptable if small
BUnethical and prohibited
CEncouraged
DRequired
Answer is hidden
Question 717 of 748Ch 10 · Engineering Professional Practice
Engineering ethics primarily deals with:
AProfit maximisation
BMoral principles governing professional conduct
CTax calculation
DDrawing scales
Answer is hidden
Question 718 of 748Ch 10 · Engineering Professional Practice
Maintaining client confidentiality is:
AOptional
BAn ethical responsibility of the engineer
CIllegal
DOnly for managers
Answer is hidden
Question 719 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
The Nepal Engineering Council was established under the NEC Act:
Answer is hidden
Question 720 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
Which body is the statutory regulator of engineering practice in Nepal?
Answer is hidden
Question 721 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
To legally practise as an engineer in Nepal, one must be:
AA member of NEA only
BRegistered/licensed with NEC
COver 30 years old
DA government employee
Answer is hidden
Question 722 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
Which examination does the NEC conduct?
AUniversity entrance
BRegistration (licence) examination
CCivil service exam
DScholarship exam
Answer is hidden
Question 723 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
The main difference between NEC and NEA is that NEC is a:
AProfessional association
BStatutory regulatory body
CPrivate company
DBank
Answer is hidden
Question 724 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
A registered engineer who violates the code of conduct may face:
AA promotion
BSuspension or cancellation of registration
CA tax refund
DNothing
Answer is hidden
Question 725 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
Maintaining professional standards and recognising qualifications is a function of the:
ANEA
BNEC
CMinistry of Finance
DLocal municipality
Answer is hidden
Question 726 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
The NEC primarily regulates:
AEngineering education and professional practice
BBanking
CAgriculture
DTourism
Answer is hidden
Question 727 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
Registration with NEC is:
AOptional for all engineers
BMandatory to practise engineering in Nepal
COnly for foreigners
DOnly for students
Answer is hidden
Question 728 of 748Ch 10 · Engineering Regulatory Body — NEC Acts & Regulations
The NEC code of ethics binds:
AOnly government engineers
BAll registered engineers
COnly contractors
DOnly students
Answer is hidden
Question 729 of 748Ch 10 · Engineering Economics & Project Management
A project is considered economically acceptable when its Benefit-Cost (B/C) ratio is:
AB/C < 1
BB/C > 1
CB/C = 0
DB/C = 1
Answer is hidden
Question 730 of 748Ch 10 · Engineering Economics & Project Management
Standard deviation is calculated as:
A√Variance
BVariance²
CMean / Variance
DVariance / n
Answer is hidden
Question 731 of 748Ch 10 · Engineering Economics & Project Management
The value at which a buyer and seller agree to complete a transaction is called:
ABook Value
BSalvage Value
CMarket Value
DPresent Value
Answer is hidden
Question 732 of 748Ch 10 · Engineering Economics & Project Management
Projects A (6-year life) and B (8-year life) are being compared using the repeatability assumption. The analysis period should be:
A6 years
B8 years
C14 years
D24 years
Answer is hidden
Question 733 of 748Ch 10 · Engineering Economics & Project Management
The time value of money concept means:
AMoney always loses value
BMoney always gains value
CA unit of money has different worth at different points in time
DInterest rates are always positive
Answer is hidden
Question 734 of 748Ch 10 · Engineering Economics & Project Management
Which capital investment evaluation method is considered LEAST reliable and is rarely used?
AAccounting Rate of Return (ARR)
BNet Present Value (NPV)
CInternal Rate of Return (IRR)
DPayback Period
Answer is hidden
Question 735 of 748Ch 10 · Engineering Economics & Project Management
The Schedule Performance Index (SPI) formula in Earned Value Management is:
ASPI = PV / EV
BSPI = EV / PV
CSPI = AC / EV
DSPI = EV / AC
Answer is hidden
Question 736 of 748Ch 10 · Engineering Economics & Project Management
Cost overrun in a project is calculated as:
AActual Cost − Planned Cost
BPlanned Cost − Actual Cost
CEarned Value − Planned Value
DActual Cost / Planned Cost
Answer is hidden
Question 737 of 748Ch 10 · Engineering Economics & Project Management
In engineering drawings, a 'B' grade pencil is primarily used for:
AFine detail linework
BConstruction lines
CDimension lines
DShading and sketching
Answer is hidden
Question 738 of 748Ch 10 · Engineering Economics & Project Management
The standard paper size ratio (width to height) for the ISO A-series is:
A1 : √2
B1 : 2
C√2 : 1
D3 : 4
Answer is hidden
Question 739 of 748Ch 10 · NEC & Professional Practice
Who has the authority to appoint the Chairman of the Nepal Engineering Council (NEC)?
AThe Prime Minister
BThe Government of Nepal
CThe NEC Council itself
DThe Minister of Physical Infrastructure
Answer is hidden
Question 740 of 748Ch 10 · NEC & Professional Practice
Who appoints the Auditor of NEC?
AThe NEC Council
BThe Ministry of Finance
CThe Auditor General
DThe Government of Nepal
Answer is hidden
Question 741 of 748Ch 10 · NEC & Professional Practice
What is the minimum number of council meetings NEC must hold per year?
Answer is hidden
Question 742 of 748Ch 10 · NEC & Professional Practice
What is the minimum number of engineering licence examinations NEC must conduct per year?
Answer is hidden
Question 743 of 748Ch 10 · NEC & Professional Practice
What is the minimum number of female members required in the NEC Council?
Answer is hidden
Question 744 of 748Ch 10 · NEC & Professional Practice
The first executive committee of NEC was formed in which year (BS)?
Answer is hidden
Question 745 of 748Ch 10 · NEC & Professional Practice
Under the NEC Act, the penalty for violating Section 2 (unauthorized engineering practice) is:
AUp to Rs. 5,000
BUp to Rs. 10,000
CUp to Rs. 15,000
DUp to Rs. 25,000
Answer is hidden
Question 746 of 748Ch 10 · NEC & Professional Practice
What type of organisation is the Nepal Engineering Council (NEC)?
APrivate body
BGovernmental / statutory body
CNon-Governmental Organisation (NGO)
DInternational organisation
Answer is hidden
Question 747 of 748Ch 10 · NEC & Professional Practice
Approval of a Bachelor's Engineering degree for NEC registration is granted by:
AThe university granting the degree
BNEC
CThe Ministry of Education
DThe Government of Nepal
Answer is hidden
Question 748 of 748Ch 10 · NEC & Professional Practice
The number of engineers registered with NEC is approximately:
A45,000
B65,000
C89,263
D120,000
Answer is hidden