Programming Paradigms Quiz

Programming Paradigms Quiz

12th Grade

54 Qs

quiz-placeholder

Similar activities

Computing - FInal Super Mega Quiz 2

Computing - FInal Super Mega Quiz 2

9th - 12th Grade

50 Qs

Programming Concepts

Programming Concepts

9th - 12th Grade

54 Qs

functions in python class 12  vaishali

functions in python class 12 vaishali

11th - 12th Grade

50 Qs

Understanding Computer Languages and Python

Understanding Computer Languages and Python

12th Grade

50 Qs

Vocabulary Review APCSP 2021

Vocabulary Review APCSP 2021

9th - 12th Grade

50 Qs

AP CS Principal Mid-Term Final 2022/23

AP CS Principal Mid-Term Final 2022/23

12th Grade

50 Qs

ИКТ 2021

ИКТ 2021

1st Grade - University

55 Qs

Programming Paradigms Quiz

Programming Paradigms Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Elmerson Benito

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?