Search Header Logo

Programming Paradigms Quiz

Authored by Elmerson Benito

Computers

12th Grade

Used 1+ times

Programming Paradigms Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

54 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the main characteristic of pure functions in the Functional Paradigm?

The output depends only on the input

They call themselves during execution

They express facts and rules about a system

They encapsulate state and behavior

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In the context of the Functional Paradigm, what does "referential transparency" mean?

Functions can be passed as arguments or returned from other functions

Variables cannot be modified after initialization

An expression can be replaced with its value without changing the program's behavior

Functions that call themselves during execution

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a common programming paradigm mentioned in the text?

Imperative (Procedural) Paradigm

Functional Paradigm

Logical Paradigm

Declarative Paradigm

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which paradigm follows a declarative approach rather than an imperative approach?

Imperative (Procedural) Paradigm

Functional Paradigm

Logical Paradigm

Object-Oriented Paradigm

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a feature of the Functional Paradigm?

Pure functions

Recursion

Referential transparency

Mutable variables

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of inheritance in Object-Oriented Programming?

Hiding unnecessary details in classes

Deriving a class from another class for code reuse and hierarchy

Reducing data to a simplified representation

Allowing variables, functions, or objects to take on multiple forms

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the concept of Polymorphism in Object-Oriented Programming?

Hiding unnecessary details in classes

Deriving a class from another class for a hierarchy

Simplifying the representation of data

The ability of an entity to take on multiple forms

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?