What is the purpose of a compiler in computer science?
a) To convert high-level programming language into
machine code
b) To execute the program instructions
c) To manage memory allocation
d) To handle input/output operations
Answer: a) To convert high-level programming language
into machine code
Rationale: A compiler is a software tool that translates
high-level programming languages into machine code,
enabling the computer to execute the program instructions.
Which data structure is best suited for implementing a
LIFO (Last In First Out) structure?
a) Queue
b) Stack
c) Linked List
d) Hash Table
Answer: b) Stack
Rationale: A stack data structure follows the LIFO
principle, making it the most suitable choice for
implementing last in, first out operations.
What is the primary function of an operating system?
a) Manage computer hardware and software resources
b) Execute application programs
c) Handle input/output devices
d) Perform arithmetic operations
Answer: a) Manage computer hardware and software
Category | Exams and Certifications |
Comments | 0 |
Rating | |
Sales | 0 |