Search Header Logo

Exploring Programming Techniques Quiz

Authored by Jerry Davis

Computers

11th Grade

Exploring Programming Techniques Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?