Exploring Programming Techniques Quiz

Exploring Programming Techniques Quiz

11th Grade

12 Qs

quiz-placeholder

Similar activities

AP CSA Unit 10 Recursion

AP CSA Unit 10 Recursion

9th - 12th Grade

10 Qs

Recursion

Recursion

10th Grade - University

10 Qs

2.2 Programming techniques - repetition

2.2 Programming techniques - repetition

11th Grade

10 Qs

Recursion in Java

Recursion in Java

11th - 12th Grade

15 Qs

Enumeration and Recursion

Enumeration and Recursion

11th Grade - University

12 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

Recursion Quiz (CP 2)

Recursion Quiz (CP 2)

10th - 12th Grade

15 Qs

Recursion in Java

Recursion in Java

9th - 12th Grade

10 Qs

Exploring Programming Techniques Quiz

Exploring Programming Techniques Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Jerry Davis

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In a flight booking app, users are asked to enter their departure airport, destination airport, departure date, return date, number of adults and number of children.

Passengers are allocated an available seat. A data structure named seats is used to store whether each seat is available (true) or unavailable (false).

The pseudocode design shows how an available seat is allocated.

Which piece of code correctly implements this design?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a fundamental concept of Object-Oriented Programming?

Procedural Abstraction

Inheritance

Functional Programming

Recursion

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Object-Oriented Programming, what is encapsulation?

The ability to create a new class from an existing class

The process of hiding the internal state and requiring all interaction to be performed through an object's methods

The ability to define multiple methods with the same name but different implementations

The process of breaking a problem into smaller sub-problems

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses a Last In, First Out (LIFO) approach?

Queue

Stack

Linked List

Tree

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of searching for an element in a balanced binary search tree?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a recursive function?

A function that calls itself

A function that uses a loop to iterate over a list

A function that sorts an array using a for loop

A function that calculates the sum of two numbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the base case in a recursive function?

The case where the function calls itself

The condition under which the recursion stops

The first call to the recursive function

The case where the function returns a value without recursion

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?