Font size
Worksheets1st, 2nd and 3rd GL
Total questions: 15
Worksheet time: 9mins
Which of the following is a characteristic of a low-level language?
Easy to learn and use
Machine-independent
Close to human language
Direct interaction with hardware
What is the primary advantage of using a high-level language?
Faster execution speed
More efficient memory usage
Easier to understand and write
Direct control over hardware
Which generation of programming languages introduced the concept of mnemonic codes?
First generation
Second generation
Third generation
Fourth generation
The (a) language is an example of a first-generation language.
What is the role of a compiler in programming?
Executes code directly
Translates high-level code into machine code
Interprets code line by line
Optimizes code for performance
Which of the following is a characteristic of a third-generation language?
Uses binary code
Requires detailed hardware knowledge
Is machine-dependent
Has a syntax closer to human language
What is the main difference between a compiler and an interpreter?
A compiler translates code line by line, while an interpreter translates the entire code at once.
A compiler creates an executable file, while an interpreter doesn't.
An interpreter is faster than a compiler.
A compiler is used for low-level languages, while an interpreter is used for high-level languages.
Which of the following is an example of a second-generation language?
C++
Java
Assembly language
Python
What is the primary goal of using a programming language?
To communicate with the computer
To solve complex mathematical problems
To create user-friendly interfaces
To automate tasks
Which generation of programming languages introduced structured programming concepts? Write ONLY First, Second or Third.
What is the purpose of using a debugger in programming?
To write code faster
To identify and fix errors in code
To translate code into machine language
To optimize code for performance
Which of the following is a characteristic of structured programming?
Use of goto statements
Unstructured code flow
Independent blocks of code
Lack of modularity
Which language is considered suitable for both business and scientific applications?
PASCAL
FORTRAN
BASIC
COBOL
What is the purpose of a subroutine in a program?
To store input and output data
To execute the main program
To perform a specific task independently
To compile the code
What is meant by "nesting" in programming?
Combining different programming languages into one.
Placing one structure within another, like a loop within a loop or a condition within a loop.
A technique to speed up program execution.
A specific type of error that occurs during compilation.
