wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

1st, 2nd and 3rd GL

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following is a characteristic of a low-level language?


a)

Easy to learn and use

b)

Machine-independent

c)

Close to human language

d)

Direct interaction with hardware

2.

What is the primary advantage of using a high-level language?


a)
  • Faster execution speed

b)
  • More efficient memory usage

c)
  • Easier to understand and write

d)
  • Direct control over hardware

3.

Which generation of programming languages introduced the concept of mnemonic codes?

a)
  • First generation

b)
  • Second generation

c)
  • Third generation

d)
  • Fourth generation

4.

The (a)   language is an example of a first-generation language.


5.

What is the role of a compiler in programming?


a)
  • Executes code directly

b)
  • Translates high-level code into machine code

c)
  • Interprets code line by line

d)

Optimizes code for performance

6.

Which of the following is a characteristic of a third-generation language?


a)
  • Uses binary code

b)
  • Requires detailed hardware knowledge

c)
  • Is machine-dependent

d)

Has a syntax closer to human language

7.

What is the main difference between a compiler and an interpreter?


a)
  • A compiler translates code line by line, while an interpreter translates the entire code at once.

b)
  • A compiler creates an executable file, while an interpreter doesn't.

c)
  • An interpreter is faster than a compiler.

d)
  • A compiler is used for low-level languages, while an interpreter is used for high-level languages.

8.

Which of the following is an example of a second-generation language?


a)
  • C++

b)
  • Java

c)
  • Assembly language

d)
  • Python

9.

What is the primary goal of using a programming language?


a)
  • To communicate with the computer

b)
  • To solve complex mathematical problems

c)
  • To create user-friendly interfaces

d)
  • To automate tasks

10.

Which generation of programming languages introduced structured programming concepts? Write ONLY First, Second or Third.

4 lines
11.

What is the purpose of using a debugger in programming?


a)
  • To write code faster

b)
  • To identify and fix errors in code

c)
  • To translate code into machine language

d)

To optimize code for performance

12.

Which of the following is a characteristic of structured programming?


a)
  • Use of goto statements

b)
  • Unstructured code flow

c)
  • Independent blocks of code

d)
  • Lack of modularity

13.

Which language is considered suitable for both business and scientific applications?


a)
  • PASCAL

b)
  • FORTRAN

c)
  • BASIC

d)
  • COBOL

14.

What is the purpose of a subroutine in a program?


a)
  • To store input and output data

b)
  • To execute the main program

c)
  • To perform a specific task independently

d)
  • To compile the code

15.

What is meant by "nesting" in programming?

a)

Combining different programming languages into one.

b)

Placing one structure within another, like a loop within a loop or a condition within a loop.

c)

A technique to speed up program execution.

d)

A specific type of error that occurs during compilation.