What is the main focus of imperative programming?

Functional Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Jimy Mathew
Used 4+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Wayground
10 questions
Programming Concepts Quiz

Quiz
•
9th Grade - University
7 questions
Pandas

Quiz
•
9th - 12th Grade
11 questions
Python functions

Quiz
•
12th Grade
10 questions
Databases (3)

Quiz
•
12th Grade
10 questions
9 . Lists, Tuples, Sets and Dictionary - 4

Quiz
•
12th Grade
10 questions
CodeHS 2.8 Functions to 2.12 User Input Review

Quiz
•
9th - 12th Grade
11 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
11 questions
Ctech Unit 2 1.2 Video Qs

Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade