Font size
WorksheetsD278 Scripting and Programming quiz
Total questions: 87
Worksheet time: 44mins
A loop consisting of a loop variable initialization, a loop expression, and a loop variable update that typically describes iterating for a specific number of times.
for loop
Pseudocode
Nested Loop
parameter
The progress of writing, compiling, and testing a small amount of code, then writing, compiling, and testing a small amount more (an incremental amount), and so on.
structural diagrams
Incremental development
Modular development
Implementation
First step in the waterfall approach. Defines a program's goals.
Analysis
Design
Implementation
A function input specified in a function definition.
parameter
interpreter
Argument
Iteration
A number with a fractional part, even if that fraction is 0.
floating-point number
Algorithm time efficiency
function definition
Floating-point literal
Used to run a program's statements.
Not a number
Iteration
Interpreter
Class diagram
The second step in the waterfall approach of SDLC. Defines specifics of a program.
Analysis
Design
Implement
Test
Text (characters) within double quotes.
Nested Loop
String literal
Binary number
Run, execute
A program performs computations on that data, such as adding two values like x + y.
Program
Comment
Input
Process
Modeling language for software design that uses different types of diagrams to visualize the structure and behavior of programs.
Universal Modeling Language
Behavioral diagrams
Incremental Development
Modular development
A graphical language for creating computer programs.
Characters
Flowchart
Function
Boolean
A program can be built by doing small amounts of each SDLC phase in sequence, then repeating. What is this approach called?
Sequence diagram
Agile or spiral approach
Systems development life cycle (SDLC)
Loop
A function may return one value and does so by assigning a return variable with the return value. What is this return variable known as?
Return statement
Return variable
Type conversion
Nested branches
Which concept supports decomposing a program into objects?
Behavioral diagrams
Not a number
Assignment statement
Object-oriented language
What is each element's location number in an array called?
Iteration
Index
Byte
Boolean
What type of loop that repeatedly executes the loop body while the loop's expression evaluates to true?
While loop
Characters
Arguments
Function
Any function input values that appear within (), and are separated by commas if more than one.
Arguments
Argument
Characters
RandomNumber()
Engineers have reduced switch sizes by half about every 2 years.
function call
Moore's Law
Expression
Type conversion
Can be a number, a variable name (numApples), or a simple calculation like (numApples + 1).
Operator
Iteration
While loop
Dividing a nonzero floating-point number by zero.
object-oriented language
structural diagrams
Infinity or -Infinity
function definition
American Standard Code for Information Interchange. Code that is the numerical representation of a character. Ex: Z would be stored in a computer as 01011010.
if-else
sequence diagram
Design
ASCII
A list of statements, each statement carrying out some action and executing one at a time.
algorithm
Program
Function
library
Statement that returns the specified value and immediately exits the function.
return statement
Precedence rules
Use Case Diagram
Implementation
An invocation of a function's name, causing the function's statements to execute.
Function
Precedence rules
function call
modulo operator
Any letter (a-z, A-Z), digit (0-9), or symbol (+, -, *, etc.).
Not a number
Expression
Characters
Argument
A single 0 or 1.
Operator
integer
bit
Loop
A decision and its two branches. If the decision's expression is true then the first branch executes, ELSE the second branch executes.
Function
Use Case
If-Else
for loop
A program construct that repeatedly executes the loop's statements (known as loop body).
Loop
Array
Output
comment
Interaction between software components and order of events
return statement
activity diagram
sequence diagram
ASCII
Type that has just two values: true or false.
Boolean
output
nested loop
comment
Used by programs to refer to data. It is a named item, used to hold a value.
Epsilon
Argument
comment
variable
A conversion of one data type to another, such as an integer to a float.
Implementation
Type conversion
function definition
Precedence rules
Checks whether two operands' values are the same (==) or different(!=).
return statement
Implementation
logical operator
Equality operator
A program written in a compiled language is first converted by a tool (compiler) into machine code, which can run on a particular machine. E.g., C, C++, and Java.
Incremental development
compiled language
Use Case Diagram
Sentinel value
A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.
input
operator
branch
process
Treats operands as being true or false, and evaluates to true or false.
Use Case Diagram
logical operator
Divide-by-zero error
activity diagram
A symbol that performs a built-in calculation, like the '+' which performs addition.
modulo operator
Characters
Operator
Use Case
A word that is part of the language, like integer, Get or Put. These words cannot be used as an identifier.
Universal Modeling Language
floating-point number
Reserved word (or keyword)
Interpreted Language
Loop that first executes the loop body's statements, then checks the loop condition.
do-while loop
Use Case Diagram
Expression
while loop
Refers to the decimal point being able to appear anywhere ('float') in the number. Ex: 9%, 0.0006.
Equality operator
Sentinel value
floating-point number
relational operator
Carrying out the SDLC phases in sequence.
Function definition
Lower camel case
Waterfall Approach
Structural diagrams
Consists of the new function's name and block of statements.
Function definition
Floating-point number
Structural diagrams
Divide-by-zero error
A sequence of statements only executed under a certain condition.
Algorithm
Argument
Variable
Branch
Special value indicating the end of a list, such as a list of positive integers ending with 0 — function call.
True
False
UML diagrams used to design dynamic elements of a program — behavioral diagram.
True
False
A value provided to a function's parameter during a function call. — Characters.
True
False
Behavioral diagram used to visually model how a user interacts with a software program. — Type conversion.
True
False
UML diagrams used to design static elements of a program — structural diagram.
True
False
A named list of statement — function.
True
False
Sequence of steps that solves a program, generating correct output for any valid input values. — library.
True
False
A named value item that holds a value that cannot change. — Characters.
True
False
A name created by a programmer for an item like a variable or function. Must be a sequence of letters, underscores, and digits or start with a letter or underscore. They are case sensitive. — Identifier.
True
False
A process in which a programmer writes and tests a few statements, then writes and tests a small amount more. — compiled language.
True
False
Declares a new variable, specifying the variable's name and type. — variable declaration.
True
False
Capitalize each word except the first, as in numApples. — Lower camel case.
True
False
A flowchart of an activity (loop, function, etc.) within the program — activity diagram.
True
False
Describes a singular goal of one user and briefly outlines how they will accomplish the goal — Pseudocode.
True
False
Text that resembles a program in a real programming language but is simplified to aid human understanding is a while loop.
True
False
Variable type that can hold whole numbers is an integer.
True
False
Each item in an array is an index.
True
False
Occurs at runtime if a divisor is 0, causing a program to terminate is a divide by zero error.
True
False
19. Modulo operator evaluates to the remainder of the division of two integer operands. Ex: 23 % 10 is 3.
True
False
A floating point number checks how one operand's value relates to another. For example, x > y.
True
False
A special variable having one name, but storing a list of data items, with each item being directly accessible is an Array.
True
False
The difference threshold indicating that floating-point numbers are equal is an Expression.
True
False
A program puts that data somewhere, such as to a file, screen, network, etc. is an input.
True
False
A list of statements executed by invoking the function's name, with such invoking know as a function call is a Program.
True
False
Text a programmer adds to a program, to be read by humans (other programmers), but ignored by the program when executing, is called a comment.
True
False
An expression is evaluated using the order of standard mathematics, which is known as Precedence rules.
True
False
A language that is run one statement at a time by another program called an interpreter, such as Python, JavaScript, C#, is called a compiled language.
True
False
A set of style guidelines defined by a company, team, teacher, etc., for naming variables is called a floating-point number.
True
False
The process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program is known as Incremental development.
True
False
Analysis Phase, Design Phase, Implementation phase, testing phase are stages of the Systems development life cycle (SDLC).
True
False
A loop that appears in the body of another loop in Pseudocode is called a Nested loop.
True
False
The nested branches can take on various forms, and the if-else branches may even use different variables, which are called Nested branches.
True
False
A set of pre-written functions that carry out common tasks, that a programmer can use to improve productivity, is called a library.
True
False
Special two-character sequence \n whose appearance in an output string literal causes the cursor to move to the next output line is called newline.
True
False
The number of calculations required to solve a problem is a Floating-point literal.
True
False
Words for carrying out a program's statements are Run, execute.
True
False
Models the objects of a program is a class diagram.
True
False
The fourth step of the waterfall approach checks that the programs correctly meets the goals is Epsilon.
True
False
Indicates an unrepresentable or undefined value is a binary number.
True
False
A function is a built-in zyFlowchart function that takes two arguments, lowValue and highValue, and returns a random integer in the range lowValue to highValue. Ex: RandomNumber(1, 10) returns a random integer in the range 1 to 10 is a Return variable.
True
False
Assigns a variable with a value, such as x=5 is an assignment statement.
True
False
Each time through a loop's statement is an interpreter.
True
False
Using base two numbers, 0 and 1 is a function call.
True
False
Eight bits, Ex: 10001001 is a byte.
True
False
