Search Header Logo
Software Development-Programming Review

Software Development-Programming Review

Assessment

Presentation

Computers

7th - 9th Grade

Practice Problem

Hard

Created by

Michael Salyers

Used 40+ times

FREE Resource

21 Slides • 20 Questions

1

Software Development-Programming Review

Slide image

2

Multiple Choice

A program shows the number 11010.11. Which data type is this?

1

Binary

2

Boolean

3

Integer

4

Float

3


It’s a float data type, which is a number with a decimal place. It could be binary, but binary is a notational system, not a data type.

4

Multiple Choice

A programmer wants to write code that directly accesses the computer’s hardware. Which is the best type of language for the programmer to use?

1

Compiled

2

Query

3

Interpreted

4

Assembly

5

Assembly is the lowest-level programming language, and it is used when developers want to access computer hardware directly.

6

Multiple Choice

You want to understand the sequence of a program, from start to finish. Which of the following is the best to use for this purpose?

1

Pseudocode

2

Function

3

Flowchart

4

Object

7

A flowchart is designed to depict visually the sequence of events and logic within a program.

8

Multiple Select

In object-oriented programming, which of the following are integral parts of objects? (Choose two.)

1

Arrays

2

Properties

3

Attributes

4

Variables

9

Objects are made up of properties, attributes, and methods. Arrays and variables could be part of an object but do not have to be.

10

Multiple Choice

You have created an array that can hold 15 items, all of the integer data type. You want to add a 16th integer. Which of the following is the best approach to doing this?

1

Add it to the existing array.

2

Create a separate variable for the 16th integer.

3

Convert the integers to floats and add the 16th integer.

4

Create a vector and replace the array with it.

11

Arrays are of a fixed length, so you can’t just add another variable if it’s at its maximum length. Vectors can have their length dynamically adjusted and might work better in this situation.

12

Multiple Select

Which of the following are examples of object-oriented programming languages? (Choose two.)

1

Java

2

XML

3

Python

4

D.C

5

SQL

13

Java and Python are considered object-oriented languages, as are C++, C#, PHP, Perl, and Ruby.

14

Multiple Choice

Which of the following statements is true regarding arrays and vectors?

1

Arrays contain one data type and are dynamic in length. Vectors can have multiple data types and are fixed in length.

2

Arrays can have multiple data types and are fixed in length. Vectors have one data type and are dynamic in length.

3

Arrays can have multiple data types and are dynamic in length. Vectors have one data type and are fixed in length.

4

Arrays contain one data type and are fixed in length. Vectors can have multiple data types and are dynamic in length.

15

Arrays and vectors are containers for data. An array can have only one data type and is fixed in length. Vectors are more flexible, containing multiple data types and being dynamic in length.

16

Multiple Choice

Which of the following numbers is written in hexadecimal format?

1

100101

2

3268

3

18AF

4

100101.11

17

Hexadecimal is also known as base 16. It uses the numbers 1 to 9 and letters A to F.

18

Multiple Select

Which of the following are examples of interpreted languages? (Choose two.)

1

Compiled

2

Query

3

Scripted

4

Markup

19

The three classes of interpreted languages are scripting, scripted, and markup languages.

20

Multiple Choice

Interpret the following logic. For data input on someone who is 20 years old, which category will they fall into?


if age ˂ 13, then category "Child"

else if age ˂ 20, then category "Teen"

else if age ˂ 65, then category "Adult"

else category "Senior"

1

Child

2

Teen

3

Adult

4

Senior

21

The logic says that anyone younger than 20 is a teen, while anyone younger than 65 is an adult. Since this person is 20 exactly, they are in the Adult category.

22

Multiple Choice

A developer needs to use a code designation for non-English letters. Which notational system does the developer need to use?

1

ASCII

2

Unicode

3

International

4

Strings

23

ASCII and Unicode are used for numerical representations of letters and symbols. ASCII covers English letters and some symbols. For non-English, use the superset of ASCII called Unicode.

24

Multiple Choice

Interpret the following logic. A law enforcement agency has received data indicating that there are ten current threats to public safety. What should the threat level be?


if threats ˂ 3, then level "Green"

else if threats ˂ 6, then level "Yellow"

else if threats ˂ 9, then level "Orange"

else if threats ˂ 12, then level Red

1

Green

2

Yellow

3

Red

4

Emergency

25

The threat level should be red. Anything from 9 to 11 is in the red range.

26

Multiple Choice

Which of the following programming language types is the lowest-level language?

1

Interpreted

2

Compiled

3

Query

4

Assembly

27

Assembly is the lowest-level programming language. Interpreted and compiled are high-level languages, and query languages are used to get data from a database.

28

Multiple Choice

A programmer is writing a program that needs to accept an input of someone’s name. What type of variable should the programmer create?

1

Char

2

String

3

Float

4

Unicode

29

A string is a group of characters—technically, zero or more characters, but not having a fixed length.

30

Multiple Choice

What type of programming language is designed to retrieve data from a database?

1

Query

2

Assembly

3

Interpreted

4

Compiled

31

Query languages are used to obtain data from databases.

32

Multiple Choice

What type of high-level programming language is translated into machine code once and then executed many times?

1

Compiled

2

Scripted

3

Scripting

4

Markup

33

Compiled language programs are compiled once and then executed as many times as needed. Scripted, scripting, and markup languages are interpreted languages, which are not compiled with a compiler.

34

Multiple Select

Which of the following terms describe concepts related to breaking code into smaller, repeatable sections? (Choose two.)

1

Functions

2

Variables

3

Methods

4

Containers

5

Objects

35

Functions and methods are used to break code into small, reusable segments.

36

Multiple Choice

Flowcharts depict which one of the following?

1

Programs

2

Objects

3

Functions

4

Identifiers

37

A flowchart is a visual depiction of a program. It includes the logic components, inputs, and all other properties of the program.

38

Multiple Choice

Which of the following is an example of a markup language?

1

SQL

2

XML

3

Python

4

Java

39

Extensible Markup Language (XML) is an example of a markup language. The other primary markup language is Hypertext Markup Language (HTML).

40

Multiple Choice

Looping logic makes use of which of the following statements?

1

while

2

when

3

loop

4

if

41

Looping logic is characterized by the while statement.

Software Development-Programming Review

Slide image

Show answer

Auto Play

Slide 1 / 41

SLIDE