Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Types of Programming Languages - Quiz

Total questions: 20

Worksheet time: 27mins

Name
Class
Date
1.

What is a client-side scripting language?

a)

A language that runs in the browser and interacts with the user interface.

b)

A language that runs exclusively on desktop systems.

c)

A language used for querying databases.

d)

A language that runs on the server and sends data to the client.

2.

What are the three broad categories that programming languages fall into?

a)

Machine languages, Assembly languages, and Higher-level languages

b)

Low-level languages, Middle-level languages, and High-level languages

c)

First-generation languages, Second-generation languages, and Third-generation languages

d)

Binary languages, English-like languages, and Graphical languages

3.

What is the primary focus of procedural programming?

a)

Writing code as a sequence of procedures or functions

b)

Creating complex data structures

c)

Using object-oriented programming exclusively

d)

Visual design of the user interface

4.

What is a key characteristic of functional programming?

a)

Emphasis on procedural programming

b)

Emphasis on how a computer should perform tasks

c)

Declarative programming style

d)

Frequent use of global/static variables

5.

What does inheritance provide in object-oriented programming?

a)

The ability to define new attributes and methods

b)

The ability to hide existing attributes and methods

c)

The mechanism to create new classes

d)

The ability to inherit attributes and methods from a parent class

6.

Assembly language is considered a low-level programming language.

a)

True

b)

False

7.

What is the main distinction between interpreted and compiled languages?

a)

Interpreted languages are always faster than compiled languages

b)

Compiled languages are converted into machine code before execution, while interpreted languages are executed line by line

c)

Interpreted languages are only used for web development

d)

Compiled languages are only used in embedded systems

8.

What is the main difference between compiled and interpreted languages?

a)

Compiled languages are executed line by line, while interpreted languages are compiled into machine code.

b)

Compiled languages are translated into machine code before execution, while interpreted languages are executed line by line.

c)

Interpreted languages are faster than compiled languages.

d)

Compiled languages only work on web servers.

9.

This refers to the rules that specify the correct combined sequence of symbols that can be used to form a correct structured program using a given programming language

a)

Syntax

b)

Tokens

c)

Semantic

d)

Lexemes

10.

What is the key characteristic of polymorphism in object-oriented programming?

a)

It allows methods with the same signature but different behaviors.

b)

It enforces the use of the same method name within a class.

c)

It ensures that all methods have different signatures.

d)

It provides a way to send messages between objects.

11.

What role does a compiler play in the development of a program?

a)

Translates high-level language into machine code line by line

b)

Converts source code into object code immediately

c)

Reads the source program and checks for syntax errors

d)

Translates the source code and runs it before translating the next statement

12.

These are the building blocks of a program’s grammatical structure, representing such basic elements as identifiers, numeric_literals, and specific keywords and operators of the language

a)

Syntax

b)

Tokens

c)

Semantic

d)

Lexemes

13.

What characterizes fifth-generation languages (5GLs) in the programming community?

a)

High ease of use and development

b)

Use of algorithms to solve problems

c)

Reliance on constraints rather than algorithms

d)

Limited debate and clear definition

14.

Which of the following is not a functional language construct?

a)

No loops

b)

Recursion

c)

Variable assignments

d)

List comprehensions

15.

Which of the following languages is known for its use in web development on both front-end and back-end?

a)

Python

b)

JavaScript

c)

C#

d)

R

16.

Which characteristics of a good programming language describes the relationship between different features in a way that they have minimal effect on each other when they are combined?

a)

Ease of Program Verification

b)

Naturalness

c)

Orthogonality

d)

Portability

17.

What are the two primary components of a software object in object-oriented programming?

a)

Variables and assignments

b)

Functions and procedures

c)

Attributes and behaviors

d)

Encapsulation and polymorphism

18.

What is the main disadvantage of machine language?

a)

Translation Free

b)

High Speed

c)

Machine Dependent

d)

Tedious

19.

Which statement best describes a high-level programming language?

a)

It requires knowledge of hardware-specific instructions.

b)

It provides a high level of abstraction and is closer to human language.

c)

It is compiled directly into machine code without interpretation.

d)

It is only used for system programming.

20.

In a typical C program development environment, what is the role of the linker?

a)

Edits the source code

b)

Stores object code on disk

c)

Links the object code with libraries

d)

Executes the program instructions