Search Header Logo

Unit 7

Authored by Thomas Martinez

Computers

9th - 12th Grade

Unit 7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an example of abstraction?

Writing a function for code you repeat often
Using logic symbols like < and >
Numbers are converted from one base to another
There is an error in the code

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why are parameters useful when programming?

Parameters determine the number of times the function will run. 
Parameters allow for more flexible, generalized behaviors in functions.
Parameters are useful for teams of programmers because they help define the boundaries of the problem they are trying to solve. 
Parameters change the order of operations within a function. 

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Multiple functions within a program can have the same name

True
False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to call the function called "doMath" with a parameter of 5?

doMath(5);
function doMath(5);
doMath();
doMath{5};

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in programs?

A.  Make the program easier to read
B.  Avoid retyping the same lines of code
C.  Both A and B are correct
D. Neither A nor B are correct

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this program?

The "go" function is called twice

The "go" function has a syntax error

The "go" function has been defined twice

"go" is not a command that can be used

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A benefit of using well-named functions and parameters in a computer program is

The program will run faster
The program will be easier for people to read
The program will have a greater data storage capacity
The program will not need parameters

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?