Which statement is an example of a dual-alternative if statement?
if (condition) then
while (condition)
if (condition) then . . . else
for each item in list
Give this one a try later!
if (condition) then . . . else
What is the primary purpose of a loop body in pseudocode?
To contain the statements repeated in a loop
To define functions
To declare variables
To make decisions based on conditions
,Give this one a try later!
To contain the statements repeated in a loop
Which sorting algorithm repeatedly steps through the list, compares adjacent elements,
and swaps them if they are in the wrong order?
Insertion
Selection
Bubble
Quick
Give this one a try later!
Bubble
What is one example of a language that uses the declarative paradigm?
-SIMULA
-Java
-Python
-Scheme
Give this one a try later!
-Scheme
Which operation is common to most file systems?
-Decrypt
, -Increment
-Decode
-Append
Give this one a try later!
-Append
Which data structure is best suited for storing a collection of different data types?
Array
Linked list
Record
Stack
Give this one a try later!
Record
What is the pseudocode that calculates the average of val_1 and val_2?
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-Set temp to val_1 Set val_1 to val_2 Set val_2 to temp
-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n
Give this one a try later!
-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n
if (condition) then
while (condition)
if (condition) then . . . else
for each item in list
Give this one a try later!
if (condition) then . . . else
What is the primary purpose of a loop body in pseudocode?
To contain the statements repeated in a loop
To define functions
To declare variables
To make decisions based on conditions
,Give this one a try later!
To contain the statements repeated in a loop
Which sorting algorithm repeatedly steps through the list, compares adjacent elements,
and swaps them if they are in the wrong order?
Insertion
Selection
Bubble
Quick
Give this one a try later!
Bubble
What is one example of a language that uses the declarative paradigm?
-SIMULA
-Java
-Python
-Scheme
Give this one a try later!
-Scheme
Which operation is common to most file systems?
-Decrypt
, -Increment
-Decode
-Append
Give this one a try later!
-Append
Which data structure is best suited for storing a collection of different data types?
Array
Linked list
Record
Stack
Give this one a try later!
Record
What is the pseudocode that calculates the average of val_1 and val_2?
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-if (val_1 < val_2) Set temp to val_1 else Set temp to val_2
-Set temp to val_1 Set val_1 to val_2 Set val_2 to temp
-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n
Give this one a try later!
-Set temp to val_1 + val_2 Set n to 2 Set x to temp / n