wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

programming 8.2 and 8.3

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

A programmer is creating an application that needs to store a value indicating if the user is logged in or not. Which of the following would be the BEST data type to accomplish this?

a)

Integer

b)

String

c)

Float

d)

Boolean

2.

A developer is creating an application that requires a value to be stored with decimal precision. Which of the following data types should be used for the variables that will store these values?

a)

String

b)

Float

c)

Boolean

d)

Integer

3.

A developer is creating a program that will store a customer's latest order number. The value will change each time a customer creates a new order. Which of the following would MOST likely be used to store the value?

a)

Object

b)

Constant

c)

Variable

d)

Array

4.

Which of the following programming models are built from class templates that have properties, attributes, and methods?

a)

Vector

b)

Objects

c)

Encapsulation

d)

Functions

5.

Which of the following is a programming identifier that would be used to define values that don't change?

a)

Vectors

b)

Vectors

c)

Constants

d)

Arrays

6.

In object-oriented programming, which of the following concepts is used to describe properties?

a)

Attributes

b)

Methods

c)

Polymorphism

d)

Encapsulation

7.

Match each language to its general purpose in a website.

Makes website elements interactive

a)

JavaScript

b)

CSS

c)

HTML

8.

Adds colors, fonts, and other design elements to website

a)

CSS

b)

HTML

c)

JavaScript

9.

Creates website structure and content

a)

HTML

b)

CSS

c)

JavaScript

10.

A software developer wants to provide a compiled executable program to a customer. Which of the following computer languages would provide this capability?

a)

C++

b)

PowerShell

c)

Perl

d)

Ruby

11.

Alan, a programmer, needs to create an interactive web page. Which of the following programming languages types would he MOST likely use?

a)

Assembly

b)

Query

c)

Compiled

d)

Interpreted

12.

Which programming language type is the most basic human-readable and closest to actual machine language?

a)

Assembly

b)

Compiled

c)

Query

d)

Interpreted

13.

On a flowchart, which of the following represents a decision?

a)

Parallelogram

b)

Parallelogram

c)

Arrow

d)

Diamond

14.

Which of the following BEST describes a flowchart?

a)

It is a step-by-step procedure that illustrates how a problem is to be solved.

b)

It is a step-by-step procedure that illustrates how a problem is to be solved.

c)

It is a visual representation of the logic in a program.

d)

It starts at the first line and then executes one line at a time until the end.

15.

What is the term for code that keeps running as long as a certain condition is met?

a)

Branch

b)

While loop

c)

Decision

d)

For loop

16.

You are working on a program that needs to keep track of many values at the same time. Which of the following would you use?

a)

A constant

b)

An array

c)

A variable

d)

A float

17.

After running the following pseudocode, what will the value of VARIABLE be?

Set value of VARIABLE to 5

Increase the value of VARIABLE by 3

If the value of VARIABLE is odd, increase its value by 1

If the value of VARIABLE is even, increase its value by 1

If the value of VARIABLE is odd, increase its value by 1

a)

8

b)

9

c)

10

d)

11

18.

Which of the following flow chart concepts is depicted below?

a)

Vectors

b)

Arrays

c)

Methods

d)

Sequence

19.

A user is shopping online and has added two items to the cart. When the user clicks the Checkout button, the shopping cart programming logic checks to see if the user is logged in already. If the user is logged in, the checkout process continues, otherwise, the user is prompted to sign in. Which of the following describes the logical component being used?

a)

Encapsulation

b)

Looping

c)

Branching

d)

Programming array

20.

Diana, a developer, needs to program a logic component that will allow the user to enter a series of values. Which of the following would BEST provide that functionality?

a)

Branching

b)

Case statement

c)

Looping

d)

Scripting

21.

Jessica, a programmer, has created specific statements, including conditional loops to accomplish a task. What has she created?

a)

Pseudocode

b)

Flowchart

c)

Algorithm

d)

Software

22.

Which of the following logic components is being used and how much is the interest if the amount is 5,000? (Select two.)

IF amount < 5,000 THEN interest = 7%, ELSE interest = 8%.

a)

Query

b)

Branching

c)

Looping

d)

7%

e)

8%