Search Header Logo

Unit 2 Quiz

Authored by Emily De Leon

Computers

10th Grade

Used 23+ times

Unit 2 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is a library in Computer Science?

A collection of books

A collection of If else statements

Modularity

A collection of procedures we can access and reuse

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What are the 3 building blocks of Algorithms?

input, output, and processing
variables, functions, and loops
conditions, loops, and arrays
sequence, selection, and iteration

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

See image

9

5

11

12

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What are conditional statements?

Conditional statements are statements in programming that allow different actions to be taken based on different conditions or criteria.
Conditional statements are statements that are executed only once.
Conditional statements are statements that are used to repeat a block of code multiple times.
Conditional statements are statements that are used to define variables in programming.

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is another word for iteration?

loop
recursion
iteration
repetition

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is a global variable?

A global variable is a variable that can only be accessed within a specific function or block of code.
A global variable is a variable that is declared and used within a single function or method.
A global variable is a variable that is limited to a specific class or object.
A global variable is a variable that is accessible and can be used throughout the entire program, regardless of its scope.

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is a local variable? Also known as a script variable.

A local variable is a variable that is declared outside of any function or block and can be accessed from anywhere in the program.
A local variable is a variable that is declared with the 'global' keyword and can be accessed from any function or block.
A local variable is a variable that is declared inside a function or a block and can only be accessed within that function or block.
A local variable is a variable that is declared with the 'static' keyword and retains its value between function calls.

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?

Discover more resources for Computers