wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Generations of Programming Languages & Documentation

Total questions: 26

Worksheet time: 13mins

Name
Class
Date
1.

What is the primary characteristic of first-generation languages (1GL)?

a)

Uses mnemonics

b)

Uses binary instructions (0s and 1s)

c)

Uses human-like syntax

d)

Uses object-oriented principles

2.

Why are first-generation languages considered machine-dependent?

a)

Each CPU has a unique instruction set

b)

They are written in high-level code

c)

They use English-like syntax

d)

They can be compiled across all hardware

3.

What is an example of a first-generation language?

a)

C

b)

Assembly

c)

Machine code

d)

Java

4.

What is one major disadvantage of first-generation languages?

a)

They are too user-friendly

b)

They are easy to debug

c)

They are difficult to read and write

d)

They require no hardware knowledge

5.

What is an advantage of first-generation languages?

a)

They have slow execution speeds

b)

They use symbolic mnemonics

c)

They execute directly on hardware without translation

d)

They are portable across multiple systems

6.

What is a key improvement of second-generation languages over first-generation languages?

a)

Uses mnemonics instead of binary

b)

Uses high-level programming concepts

c)

Can be written without an assembler

d)

Is completely hardware-independent

7.

Which tool is required to convert assembly code into machine code?

a)

Compiler

b)

Assembler

c)

Interpreter

d)

Debugger

8.

What makes assembly language easier than machine code?

a)

Uses binary numbers directly

b)

Uses human-like syntax

c)

Uses symbolic instructions (e.g., MOV, ADD)

d)

Runs without needing a CPU

9.

Which of the following is NOT a characteristic of assembly language?

a)

Uses mnemonics like MOV, ADD

b)

Requires an assembler

c)

Runs directly on hardware

d)

Is specific to a processor

10.

What is a limitation of assembly language compared to higher-level languages?

a)

It is faster than machine code

b)

It is highly readable

c)

It is hard to debug and maintain

d)

It does not interact with hardware

11.

What is a key characteristic of third-generation languages (3GL)?

a)

Uses binary directly

b)

Uses mnemonics

c)

Uses structured human-readable syntax

d)

Is machine-dependent

12.

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

a)

Assembly

b)

Python

c)

SQL

d)

Machine Code

13.

What is an advantage of 3GLs over 2GLs?

a)

They require detailed knowledge of hardware

b)

They can be directly executed by the CPU

c)

They use high-level syntax and are easier to read

d)

They use binary numbers

14.

What is required for a 3GL program to run on a computer?

a)

Manual memory allocation

b)

Direct CPU execution

c)

Compilation or interpretation

d)

No conversion needed

15.

Which of the following is NOT an example of a 3GL?

a)

Java

b)

FORTRAN

c)

Prolog

d)

C++

16.

What is a 4GL primarily used for?

a)

Direct hardware programming

b)

Artificial intelligence

c)

Database management and business applications

d)

Writing operating systems

17.

Which of the following is an example of a 4GL?

a)

Python

b)

SQL

c)

Java

d)

C++

18.

What is the key concept behind 5GL programming?

a)

Uses procedural instructions

b)

Uses logic and constraints to solve problems

c)

Requires manual memory allocation

d)

Works only with low-level programming

19.

What is an example of a 5GL?

a)

Prolog

b)

C++

c)

Java

d)

Assembly

20.

What is the primary purpose of documentation in programming?

a)

To slow down development

b)

To help programmers, maintainers, and users understand the program

c)

To replace testing

d)

To increase code complexity

21.

Which of the following is a key benefit of documentation?

a)

Makes debugging, upgrading, and fixing issues easier

b)

Eliminates the need for comments in code

c)

Allows code to run faster

d)

Makes programs harder to modify

22.

Which of the following is NOT a feature of internal documentation?

a)

Using meaningful variable names

b)

Adding comments to explain code

c)

Using indentation for readability

d)

Writing code in a single continuous line

23.

What is an example of a bad variable name in code?

a)

int x, y;

b)

int totalMarks;

c)

int finalScore;

d)

int maxMarks;

24.

Why should you use indentation in programming?

a)

It makes code run faster

b)

It improves readability

c)

It reduces debugging time by 100%

d)

It prevents syntax errors

25.

How much can good documentation reduce debugging time?

a)

10%

b)

25%

c)

50%

d)

75%

26.

Why is documentation essential for new team members?

a)

It helps them get up to speed faster

b)

It forces them to learn on their own

c)

It makes programming harder

d)

It replaces code reviews