wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Generations of Programming Languages

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What are the main classifications of programming languages?

a)

High-level, low-level, compiled, interpreted, procedural, object-oriented, functional

b)

Declarative, imperative, logical

c)

Scripting, markup, assembly

d)

Static, dynamic, visual

2.

How do you distinguish between the generations of programming languages?

a)

Generations of programming languages are distinguished by their level of abstraction from machine code: 1GL (machine code), 2GL (assembly), 3GL (high-level), 4GL (very high-level), and 5GL (AI-based).

b)

1GL is a programming language for web development.

c)

5GL is exclusively for database management.

d)

3GL includes only low-level languages like C.

3.

What is a low-level programming language?

a)

A high-level programming language that abstracts hardware details.

b)

A programming language that is only used for web development.

c)

A low-level programming language is a language that provides little abstraction from a computer's hardware, allowing direct manipulation of memory and hardware.

d)

A language that requires extensive libraries for basic operations.

4.

What is a high-level programming language?

a)

A programming language that is only suitable for advanced users.

b)

A programming language that is user-friendly and abstracts hardware details.

c)

A language that requires extensive knowledge of hardware.

d)

A programming language that is only used for system programming.

5.

List one advantage of using high-level languages.

a)

Lower memory usage compared to assembly languages.

b)

Faster execution speed of programs.

c)

Improved readability and maintainability of code.

d)

Direct hardware manipulation capabilities.

6.

List one disadvantage of high-level languages.

a)

Simpler syntax for complex tasks.

b)

Higher portability across different systems.

c)

More control over hardware resources.

d)

Lower execution efficiency compared to low-level languages.

7.

What is one advantage of low-level languages?

a)

Easier to read and understand than high-level languages.

b)

Direct control over hardware and system resources.

c)

Automatic memory management and garbage collection.

d)

Higher-level abstractions for complex programming tasks.

8.

What is one disadvantage of low-level languages?

a)

High-level languages are more difficult to learn.

b)

Low-level languages are faster to execute on all systems.

c)

Low-level languages require less memory than high-level languages.

d)

Low portability across different hardware architectures.

9.

How do high-level languages improve programmer productivity?

a)

High-level languages enhance productivity by simplifying coding, reducing development time, and improving code maintainability.

b)

High-level languages make debugging more difficult.

c)

High-level languages increase the amount of code needed for simple tasks.

d)

High-level languages require more complex coding techniques.

10.

In what scenarios are low-level languages preferred?

a)

Web development and design

b)

Data analysis and machine learning

c)

Low-level languages are preferred for system programming, embedded systems, real-time applications, and hardware manipulation.

d)

Mobile app development

11.

What is the significance of assembly language in programming?

a)

Assembly language is only used for educational purposes.

b)

Assembly language allows for low-level hardware control and optimization in programming.

c)

Assembly language is primarily used for web development.

d)

Assembly language is a high-level programming language.

12.

How do programming languages evolve over generations?

a)

Programming languages evolve from low-level to high-level, introducing new features and paradigms over generations.

b)

Programming languages remain static and do not change over time.

c)

Programming languages evolve by becoming less user-friendly and more complex.

d)

Programming languages only evolve by adding more syntax errors.

13.

What role do compilers play in high-level languages?

a)

Compilers interpret high-level languages directly without conversion.

b)

Compilers are used to write high-level languages from scratch.

c)

Compilers convert high-level languages into machine code for execution.

d)

Compilers only optimize code but do not translate it to machine code.

14.

Can you give an example of a low-level language?

a)

C++

b)

Java

c)

Assembly language

d)

Python

15.

What are the trade-offs between performance and ease of use in programming languages?

a)

High-performance languages are always easy to use.

b)

Performance and ease of use are unrelated in programming languages.

c)

Easy-to-use languages provide the best performance.

d)

High-performance languages offer speed but are harder to use; easy-to-use languages are slower but more accessible.