Search Header Logo

Parts of a program and Functions Quiz

Authored by Keesha Jennings

Other

12th Grade

Used 8+ times

Parts of a program and Functions Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What are the major components of a program header?

Specification, Name, Date, Import statement(s)

Polyline, Polygon, ThickPolyline, SolidPolygon

Variables, Functions, Lists, Slideshow

Lettering, Lettering Block, Painted, Dots

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of a specification?

To provide a short summary about the program and its function

To define the name of the person creating the program

To specify the date when the program was created/finished

To import libraries from the Code World documentation

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How do we define a function in computational thinking?

A predefined process applied to an input to produce an output.​

A job that you do each day.

The special, normal, proper physiologic activity of a body part or an organ.

A short summary about the program.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the signature of the painted function?

painted :: (Picture, Text) -> Picture

painted :: (Picture) -> Text

painted :: (Text) -> Picture

painted :: ([Text], Picture) -> Picture

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of the lettering function?

To label the points on a graph

To draw a line going through many points

To create multiple pages with inserted information

To provide a text displayed in the center of the screen

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the signature of the combined function?

combined :: [Point] -> Picture

combined :: (X pos, Y pos, Size, Text) -> Picture

combined :: [Picture] -> Picture

combined :: (Point) -> Picture

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of the labeling function?

To draw a line going through many points

To reduce a list of pictures to a single picture

To label the points on a graph

To choose the position and size of the text

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?