Functions and Decomposition in Programming

Functions and Decomposition in Programming

Assessment

Interactive Video

Computers

2nd Grade

Easy

Created by

Mercy Omwoyo

Used 6+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in programming?

Break down our program into smaller parts

Avoid repeating code

Make our program more readable


All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does decomposition in programming refer to?

Deleting unnecessary lines of code

Breaking down a program into smaller manageable parts

Increasing the size of a program

Combining multiple programs into one

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does top design help in programming?

It eliminates the need for collaboration

It reduces the need for functions

It helps solve large complicated problems

It makes side more complex

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of program readability?

Avoiding comments in code

Use descriptive names like go_to_pile()

Writing code in a single function

Using long and complex variable names

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Are you enjoying the video lesson?

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one benefit of top down design?

It makes the code harder read

It allows for independent problem solving

It increases the number of errors

It requires more memory