Functional Programming Quiz

Functional Programming Quiz

12th Grade

6 Qs

quiz-placeholder

Similar activities

Data Handling Introduction

Data Handling Introduction

12th Grade

10 Qs

Ctech Unit 2 1.2 Video Qs

Ctech Unit 2 1.2 Video Qs

12th Grade

11 Qs

Structures in C++

Structures in C++

12th Grade

10 Qs

Python Pandas Series

Python Pandas Series

12th Grade

10 Qs

Databases (3)

Databases (3)

12th Grade

10 Qs

Test#1

Test#1

12th Grade

10 Qs

Revision Quiz  Game- 1

Revision Quiz Game- 1

12th Grade

10 Qs

PLTW CSE L1 Vocab P2/2

PLTW CSE L1 Vocab P2/2

9th - 12th Grade

10 Qs

Functional Programming Quiz

Functional Programming Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Jimy Mathew

Used 4+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main focus of imperative programming?

What should happen

How to do it

Using pattern matching

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which language is an example of a declarative language?

C

Java

SQL

Assembly

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key characteristic of declarative programming?

a) Programs describe what the result should look like

b) Programs prescribe a sequence of steps

c) Programs use only loops

d) Programs must have side effects

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does referential transparency mean?

a) A function always produces the same result for the same input

b) A function changes its return value based on external conditions

c) A function modifies external variables

d) A function uses mutable state

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following violates referential transparency?

a) A function that returns the sum of two numbers

b) A function that modifies a global variable

c) A function that always returns the same output for a given input

d) A function that calculates the square of a number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a) Referential transparency

b) Mutable state

c) First-class functions

d) Pattern matching