Computer Science MCQ (50 Qu.) : Each question carries 1 mark. Click on the question and its options to take the test and check your result.
Which technique marked the beginning of computer communication?
User Environment
Batch Environment
Time Sharing
None of the above
Time Sharing
In time-sharing, the resources of one computer are used by multiple users by dividing time among them.
BPSC TRE 1.0 2023
Which of the following languages is better for writing structured code?
PASCAL
FORTRAN
BASIC
None of the above
PASCAL
PASCAL was developed for teaching and writing structured programs.
BPSC TRE 1.0 2023
What is used to make processes contiguous and bring all free memory into one block?
Fragmentation
Compaction
External Fragmentation
None of the above
Compaction
Compaction moves free memory areas together to reduce external fragmentation.
BPSC TRE 1.0 2023
Which of the following is not a valid variable name in most programming languages?
myVariable
123Variable
_myVariable
None of the above
123Variable
A variable name cannot begin with a digit; it must begin with a letter or underscore.
BPSC TRE 1.0 2023
Secondary memory is long-term storage, while main memory holds programs and data currently in use. What type of organization is this?
Physical
Logical
Structural
None of the above
Logical
This classification is based on the function and use of memory, hence it is logical organization.
BPSC TRE 1.0 2023
What will be displayed in C++ if a semicolon is missing at the end of a statement?
Semicolon missing
Statement missing
Error in statements
None of the above
Error in statements
The compiler reports a statement error when a semicolon is missing.
BPSC TRE 1.0 2023
What is the set of libraries that provide programmatic access to 2D graphics functions called?
Graphics package
Formatting package
Animation package
None of the above
Graphics package
A graphics package provides programmatic access to 2D graphics functions.
BPSC TRE 1.0 2023
Which shortcut key is used to compile and run a C++ program?
Alt+F9
Alt+F5
Ctrl+F9
None of the above
Ctrl+F9
In Turbo C++, Ctrl+F9 compiles and runs the program.
BPSC TRE 1.0 2023
What does the control unit generate to control other units?
Timing signals
Command signals
Control signals
None of the above
Control signals
The control unit generates control signals to control the operation of other units.
BPSC TRE 1.0 2023
Which extension is used for a user-defined header file in C++?
.hg
.cpp
.h
None of the above
.h
C++ header files generally use the .h extension.
BPSC TRE 1.0 2023
Which is the most common addressing technique used by the CPU?
Direct
Indirect
Immediate
None of the above
Direct
In direct addressing, the instruction contains the direct address of the operand.
BPSC TRE 1.0 2023
What happens when the C++ statement
int *ptr = NULL; delete ptr; is compiled and executed?The program is not semantically correct
The program compiles and executes successfully
The program gives a compile-time error
None of the above
The program compiles and executes successfully
Deleting a NULL pointer is safe and performs no operation.
BPSC TRE 1.0 2023
What is used to remove the difference in data transfer speed between different devices?
Multiple buses
Buffer registers
Speed-enhancing circuitries
None of the above
Buffer registers
Buffer registers balance data transfer between devices operating at different speeds.
BPSC TRE 1.0 2023
What is used to increase the connectivity of the processor bus?
PCI bus
Multiple bus
SCSI bus
None of the above
PCI bus
The PCI bus is an expansion bus used to increase processor connectivity.
BPSC TRE 1.0 2023
What happens in memory-mapped I/O?
I/O devices and memory share the same address space
I/O devices have a separate address space
Memory and I/O devices have an associated address space
None of the above
I/O devices and memory share the same address space
In memory-mapped I/O, I/O devices are mapped into the same address space as memory.
BPSC TRE 1.0 2023
Which is the correct declaration of an array in C++?
array{10};
int array;
int array[10];
None of the above
int array[10];
In C++, an array declaration includes the data type, name, and size in square brackets.
BPSC TRE 1.0 2023
By what other name are SQL views known?
Simple tables
Virtual tables
Complex tables
None of the above
Virtual tables
A view is a virtual table derived from base tables.
BPSC TRE 1.0 2023
How many primary keys can a table have?
Only 1
Only 2
Depends on the number of columns
None of the above
Only 1
A table can have only one primary key, which may consist of one or more columns.
BPSC TRE 1.0 2023
What will be the output of the given C++ code?
Hello
World
Error
None of the above
Error
C-style character arrays cannot be joined using the + operator, so a compile error occurs.
BPSC TRE 1.0 2023
Which of the following is not an SQL constraint?
Primary key
Not null
Union
None of the above
Union
Union is an SQL set operator, not a constraint.
BPSC TRE 1.0 2023
Which of the following is not a valid aggregate function?
COUNT
COMPUTE
SUM
None of the above
COMPUTE
COUNT, SUM, AVG, MIN, and MAX are aggregate functions; COMPUTE is not.
BPSC TRE 1.0 2023
Who is known as the father of the computer?
James Gosling
Charles Babbage
Dennis Ritchie
None of the above
Charles Babbage
Charles Babbage is known as the father of the computer.
BPSC TRE 1.0 2023
If ASC or DESC is not specified after the ORDER BY clause in SQL, what is used by default?
DESC
ASC
No default value
None of the above
ASC
The default sorting order in ORDER BY is ascending (ASC).
BPSC TRE 1.0 2023
Which statement about the HAVING clause is correct?
It is like WHERE but used for columns instead of groups
It is like WHERE but used for rows instead of columns
It is like WHERE but used for groups instead of rows
None of the above
It is like WHERE but used for groups instead of rows
The HAVING clause applies a condition to grouped records.
BPSC TRE 1.0 2023
What is the method of accessing I/O devices by repeatedly checking status flags?
Program-controlled I/O
Memory-mapped I/O
I/O-mapped I/O
None of the above
Program-controlled I/O
In program-controlled I/O, the CPU repeatedly checks the status flag; this is also called polling.
BPSC TRE 1.0 2023
What is the brain of the computer?
CPU
Memory
I/O device
None of the above
CPU
The CPU performs all processing and control functions, so it is called the brain of the computer.
BPSC TRE 2.0 2023
To which generation does the Intel 8085 microprocessor belong?
First
Second
Third
None of the above
Second
The Intel 8085 is considered a second-generation microprocessor.
BPSC TRE 2.0 2023
What is the maximum memory size of a third-generation microprocessor?
4 GB
16 MB
16 GB
None of the above
16 MB
Third-generation microprocessors have a maximum memory addressing capacity of 16 MB.
BPSC TRE 2.0 2023
What is a CPU located on a single chip called?
Microprocessor
Microcontroller
Solid-state device
None of the above
Microprocessor
A CPU on a single chip is called a microprocessor.
BPSC TRE 2.0 2023
What is a computer located on a single chip called?
Microcontroller
Microprocessor
Assembler
None of the above
Microcontroller
A microcontroller contains the CPU, memory, and I/O on a single chip.
BPSC TRE 2.0 2023
Which of the following is used for playing video games?
Mouse
Trackball
Joystick
None of the above
Joystick
A joystick is an input device mainly used in gaming and simulation.
BPSC TRE 2.0 2023
Which memory is used to store software that is not updated?
SRAM
DRAM
ROM
None of the above
ROM
ROM is non-volatile memory used to store permanent software or firmware.
BPSC TRE 2.0 2023
Which of the following contains a laser?
CD Drive
RAM
Hard Disk Drive
None of the above
CD Drive
A CD drive uses a laser to read and write data on an optical disc.
BPSC TRE 2.0 2023
What is the program that converts an assembly language program into an equivalent machine language program called?
Compiler
Assembler
Linker
None of the above
Assembler
An assembler translates assembly language into machine language.
BPSC TRE 2.0 2023
What is the program that converts a high-level language program into an equivalent machine language program called?
Assembler
Compiler
Loader
None of the above
Compiler
A compiler translates an entire high-level language program into machine language.
BPSC TRE 2.0 2023
What is the program that translates a high-level language program into machine language statement by statement called?
Compiler
Loader
Interpreter
None of the above
Interpreter
An interpreter translates and executes each statement separately.
BPSC TRE 2.0 2023
Which of the following is not an operating system?
Linux
Windows
Oracle
None of the above
Oracle
Oracle is a database management system, not an operating system.
BPSC TRE 2.0 2023
What is the software that runs on computer hardware and provides a platform for other software called?
System software
Operating system
Application software
None of the above
Operating system
The operating system provides a platform between hardware and application software.
BPSC TRE 2.0 2023
Which of the following is not a system tool?
Scandisk
Format
Folder
None of the above
Folder
A folder is a medium for organizing files, not a system tool.
BPSC TRE 2.0 2023
Which key is used to delete a file without storing it in the Recycle Bin?
Delete
Shift + Delete
Ctrl + Delete
None of the above
Shift + Delete
Shift + Delete permanently deletes a file without sending it to the Recycle Bin.
BPSC TRE 2.0 2023
What are the three main components of a digital computer system?
Memory, I/O, DMA
ALU, CPU, Memory
Memory, CPU, I/O
None of the above
Memory, CPU, I/O
The main parts of a computer are memory, CPU, and input/output devices.
BPSC TRE 2.0 2023
In which memory size will the last memory location be FFFF?
16K
32K
64K
None of the above
64K
A 16-bit address space has 216 = 65536 locations, i.e., 64K; the last address is FFFF.
BPSC TRE 2.0 2023
Where is the cost of storing one bit the lowest?
Cache
Register
Magnetic tape
None of the above
Magnetic tape
Magnetic tape is an inexpensive sequential storage medium, so the cost per bit is lowest.
BPSC TRE 2.0 2023
What does Tera mean?
220
240
230
None of the above
240
In binary measurement, Tera equals 240.
BPSC TRE 2.0 2023
Which system software always remains in main memory?
Loader
Linker
Assembler
None of the above
Loader
The loader loads a program from secondary storage into main memory and remains memory-resident.
BPSC TRE 2.0 2023
Which data structure is used to convert infix notation to postfix notation?
Stack
Queue
Tree
None of the above
Stack
A stack is used to maintain operator order during infix-to-postfix conversion.
BPSC TRE 2.0 2023
What is the data structure called in which data is added from the rear and deleted from the front?
Stack
Queue
Linked list
None of the above
Queue
In a queue, insertion occurs at the rear and deletion occurs at the front.
BPSC TRE 2.0 2023
Which principle does the queue data structure use?
FIFO
LIFO
LILO
None of the above
FIFO
A queue works on the First In First Out (FIFO) principle.
BPSC TRE 2.0 2023
Which principle does the stack data structure use?
FIFO
LIFO
LILO
None of the above
LIFO
A stack works on the Last In First Out (LIFO) principle.
BPSC TRE 2.0 2023
When is a constructor called?
When an object is created
When a class is created
When a class is declared
None of the above
When an object is created
A constructor is automatically called when an object is created.
BPSC TRE 2.0 2023
