WorksheetsPROG2013_Quiz_Unit1a
Total questions: 15
Worksheet time: 15mins
Who is considered the world's first computer programmer?
Grace Hopper
Ada Lovelace
Radia Perlman
John von Neumann
Who is known as the "Father of the Computer"?
John von Neumann
Tommy Flowers
Alan Turing
Charles Babbage
Which pioneer broke the German Enigma code during World War II?
Alan Turing
Claude Shannon
Tommy Flowers
Ada Lovelace
What is the main difference between a programmer and a coder?
A coder creates programs, and a programmer tests them.
A programmer plans instructions, while a coder converts ideas into a language a computer can understand.
A coder designs hardware, and a programmer designs software.
A programmer operates the computer, while a coder configures networks.
Which component of a computer is responsible for performing calculations and making decisions?
Memory Unit
Input Unit
Central Processing Unit (CPU)
Arithmetic and Logic Unit (ALU)
What is the role of the CPU in a computer?
It processes instructions and coordinates other components.
It stores data long-term.
It performs only arithmetic calculations.
It converts high-level code into machine code.
What is machine language?
A high-level programming language.
A set of human-readable mnemonics.
Binary instructions directly executed by the CPU.
An interpreted scripting language.
Which of the following is a characteristic of assembly language?
Is a high-level programming language.
Uses mnemonics like MOV and ADD for instructions.
Uses binary code to communicate with the CPU.
Is highly portable across different CPU architectures.
What is the primary function of a compiler?
To translate machine code into high-level code.
To execute code line-by-line.
To directly execute source code without translation.
To translate high-level language code into machine code.
What is the main difference between a compiler and an interpreter?
A compiler translates code before execution, while an interpreter translates and executes code line-by-line.
An interpreter generates an executable file, while a compiler does not.
Compilers are only used for low-level languages.
Interpreters are faster than compilers.
Which of the following uses a Just-In-Time (JIT) compiler?
Python (CPython)
JavaScript (V8 Engine)
C++
HTML
What is a program?
A set of random binary digits.
A collection of instructions that tell the computer what to do.
A hardware device that controls peripherals.
A compiler that translates machine code.
What does "syntax" refer to in programming languages?
The logical meaning of the code.
The rules governing the structure of code.
The memory management of variables.
The way the CPU executes instructions.
What is the meaning of "semantics" in programming languages?
The study of control flow in programs.
The way memory is allocated for variables.
The meaning and behavior of syntactically correct code.
The rules for variable names and data types.
Which of the following best describes "pragmatics" in programming?
The theoretical basis of a programming language.
The syntax and formatting of a language.
The scope and lifetime of variables.
The best practices for writing efficient and readable code.
