Search Header Logo

Exploring Programming Paradigms Quiz

Authored by Simon Withey

Computers

11th Grade

Exploring Programming Paradigms Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a key characteristic of functional programming?

Mutable state

First-class functions

Inheritance

Encapsulation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In object-oriented programming, what is the term used to describe the bundling of data with the methods that operate on that data?

Polymorphism

Abstraction

Encapsulation

Inheritance

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a pure function in functional programming?

A function that modifies a global variable

A function that returns different results for the same input

A function that has no side effects

A function that relies on external input

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In object-oriented programming, what is the concept of using a single interface to represent different data types?

Inheritance

Polymorphism

Encapsulation

Composition

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a feature of functional programming?

Immutability

Higher-order functions

Classes and objects

Recursion

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using inheritance in object-oriented programming?

It allows for code duplication

It enables the creation of private methods

It facilitates code reuse

It restricts access to data

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In functional programming, what is the term for a function that takes another function as an argument or returns a function as a result?

Recursive function

Higher-order function

Pure function

Lambda function

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?