2. Producing robust programs

2. Producing robust programs

10th Grade

13 Qs

quiz-placeholder

Similar activities

Code.org Unit 3

Code.org Unit 3

9th - 12th Grade

14 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

AP CSP Functions, Returns, Libraries

AP CSP Functions, Returns, Libraries

9th - 12th Grade

12 Qs

Computer Science Principles

Computer Science Principles

9th - 12th Grade

12 Qs

Programming Languages

Programming Languages

9th - 12th Grade

17 Qs

Classification of programming languages

Classification of programming languages

10th Grade

10 Qs

ocr computer science 2.5

ocr computer science 2.5

10th Grade

16 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

2. Producing robust programs

2. Producing robust programs

Assessment

Quiz

Computers

10th Grade

Medium

Created by

M Ellis

Used 3+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a better choice for a variable name that reflects its purpose?

x

y

H

height

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is indentation important in programming?

It makes the code run faster.

It helps the programmer see which code falls within a selection or iteration.

It reduces the size of the code.

It makes the code look pretty.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are subprograms used for in programming?

To make the code longer.

To perform a specific task within a larger program.

To confuse the programmer.

To slow down the program.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two types of subprograms?

Variables and Constants

Classes and Objects

Procedures and Functions

Loops and Conditions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subprogram typically used for in programming?

To perform a specific task

To create a new programming language

To design user interfaces

To compile code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using subprograms?

They make programs run faster

They allow code to be reused

They increase the size of the program

They make programs more complex

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a procedure different from a function?

A procedure returns a result, a function does not

A function returns a result, a procedure does not

A procedure is larger than a function

A function is used only for mathematical operations

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?