Resources for Programmers — Unit test Answers

25 verified answers
1
Free Preview

In Python programming language, what is a function statement?

A
an action that a function will execute
B
an action that is defined in a function header
C
the first line of a function definition
D
the first comment in a software program
2
Free Preview

An If statement is based on boolean logic because

A
the condition in the statement tests TRUE or FALSE.
B
it contains two different conditions.
C
it returns either a 0 or a 1.
D
it uses shorthand operators.
3

Conditional statements are useful to computer programmers because

A
they eliminate extra coding by reuse of materials.
B
they allow programmers to set conditions to be met for an action to take place.
C
they use shorthand symbols to represent quantities.
D
they are predefined for each programming language.
4

In computer programming, what is syntax?

A
a set of rules that helps structure a program correctly in a specific programming language
B
a set of rules that helps test a program step-by-step to identify bugs in code
C
a type of programming language
D
a type of debugging tool
7

What is a compiler?

A
a tool used to integrate multiple software programs
B
a tool used to extract a single software program from an integrated collection of programs
C
a computer software application that translates binary computer machine language into a computer programming language
D
a computer software application that translates a computer programming language into a binary computer machine language
9

What is an Integrated Development Environment (IDE)?

A
a coordinated software development effort
B
a coordinated software program writing package
C
a diverse workplace for software developers
D
a diverse workplace for all employees in a software development company
11

Farrah plans to use BlackAdder, a multiple-language IDE, to develop software code. What must she consider before using this IDE?

A
the time it will take to write code in binary language
B
the limitations of using a language-specific IDE
C
the cost of licensing fees
D
the guidelines for using open-source software
12

Compiler software has a stepping function that

A
runs code line by line to help developers find bugs.
B
translates the software program code into machine language.
C
fixes syntax errors as it compiles.
D
finds and removes the loops in the software program.
13

The data that a function takes in is called

A
a return value.
B
syntax.
C
an argument.
D
output.
14

Two programmers wrote very similar code. Compare the two to decide what the difference will be between them.Programmer A Programmer Bdef drawUnknown(): x = 20 pendown() forward(x) penup()def drawUnknown(): x = 50 pendown() forward(x) penup()

A
Programmer A draws a shorter line than Programmer B.
B
Programmer A draws a circle, while Programmer B draws a square.
C
Programmer A draws a longer line than Programmer B.
D
Programmer A draws an H, while Programmer B draws an E.
15

Dinah is using an IDE to write, modify, and save code. Which tool should she use?

A
a source code editor
B
a build automation tool
C
a compiler
D
a debugger
16

A looping construct that continues to repeat until the expression becomes false is

A
a while loop.
B
a for loop.
C
an infinite loop.
D
a pass loop.
17

Binary is best interpreted by a computer because

A
it is a simple system using patterns of three numbers.
B
the numbers in the system represent the on and off positions of the switches in a computer’s hardware.
C
it is broken down into bits.
D
it can be easily converted to the decimal system.
20

Which string of octal values in the conversion table can be used to represent the word “BAKE”?

Question illustration
A
101 102 105 107
B
105 113 101 102
C
102 101 113 105
D
1018 1028 1058 1078

Did you find these answers helpful?

Resources for Programmers — Unit test Answers —…