Search Header Logo

Review-Paper 1

Authored by JOCELYN GAMO

Computers

12th Grade

Used 3+ times

Review-Paper 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 3 pts

The games club is looking at two programming paradigms: imperative and object-oriented programming paradigms. Describe what is meant by the imperative programming paradigm. Choose three

A sequence of steps that change the state of the program

Creates classes

Subclasses can inherit from superclasses (child and parent)

Groups code into self-contained blocks // split the program into modules

The steps are in the order they should be carried out

2.

MULTIPLE SELECT QUESTION

20 sec • 2 pts

The games club is looking at two programming paradigms: imperative and object-oriented programming paradigms. Describe what is meant by the Object-Oriented programming paradigm. Choose two

A sequence of steps that change the state of the program

Creates classes

Subclasses can inherit from superclasses (child and parent)

Groups code into self-contained blocks // split the program into modules

The steps are in the order they should be carried out

3.

MULTIPLE SELECT QUESTION

20 sec • 3 pts

Some algorithms can be written using recursion. State three features of recursion.

It is defined in terms of itself // it calls itself

It can return data to its previous call

When the stopping condition/base case is met

…the last set of values are taken off the stack (in reverse order)

It is a self-contained subroutine

4.

MULTIPLE SELECT QUESTION

20 sec • 2 pts

Some algorithms can be written using recursion. Explain what a compiler has to do to implement recursion. Choose two.

It is defined in terms of itself // it calls itself

It can return data to its previous call

When the stopping condition/base case is met

…the last set of values are taken off the stack (in reverse order)

It is a self-contained subroutine

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identify the programming paradigm for each of these program code examples.

male(john).

female(ethel).

parent(john, ethel).

Declarative

Low-level / assembly

Object oriented / (OOP)

Procedural / imperative

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identify the programming paradigm for each of these program code examples.

FOR Counter = 1 TO 20

X = X * Counter

NEXT Counter

Declarative

Low-level / assembly

Object oriented / (OOP)

Procedural / imperative

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identify the programming paradigm for each of these program code examples.

Start: LDD Counter

INC ACC

STO Counter

Declarative

Low-level / assembly

Object oriented / (OOP)

Procedural / imperative

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?