State the three types of iteration.
Pre-condition, Post-condition, and count-controlled loops
What are the two important components in an abstract data type?
Top/Head/Start and Tail (Null pointer for linked list)
In psychiatry and neurology, a syndrome where people perceive objects as appearing smaller than they actually are is named for what Lewis Carroll story, in which the main character shrinks after drinking from a bottle labelled "DRINK ME"?
Alice in Wonderland Syndrome
Differentiate between Parameters and arguments
Parameters are variables to be used only inside the subroutine. Arguments are the actual data being passed into the parameters.
What do you call an FSM that contains an output?
Define abstraction
Abstraction means hidding/filtering out information not needed/necessary to solve a problem. It only focuses on the priorities.
There are primitive data types and composite data types. Give one example of a composite data type. How do we write this in pseudocode?
Record Type is a composite data type.
TYPE <variable name>
DECLARE <variable name> : <data type>
.....
ENDTYPE
From Juno's brother, what does GPT mean in ChatGPT?
Generative pre-trained transformer
What does slicing do in Python?
Slicing means extracting a substring within the string by supplying a start index and an end index.
How does one signify that that is the starting state of an FSM machine?
If it is a double lined circle and has a start arrow.
What is the difference between local and global variables
Local variables are only accessible inside the subroutine. Global variables are accessible from all modules
OPENFILE <filename>
READFILE <filename>, <stringContent>
WRITEFILE <filename>, <stringContent>
CLOSEDILE <filename>
What does CODA stand for?
Child of Deaf Adults
PROCEDURE SAMPLE (X:REAL, Y:BOOL, Z:INT) RETURNS STRING
Describe the components of a structured chart
Modules - subroutines of the program
arrows (solid round end) - used for boolean values
arrows (transparent round end) - used for variables that does not store booleans
double-headed arrow - used to signify that there is an update within the module.
Describe what a bubble sort is. How does it work?
Bubble sort is a sorting algorithm wherein it first compares the current and the next data, and swap its position to meet the conditions.
Descibe how a stack, queue, and circular queue works
Stack - FiLO
Queue - FIFO
Circular Queue - goes back to the start index
What is the national animal of Scotland?
As long as a nested loop is made and correct indexing, points will be given
State two advantages of using iterative model and waterfall model?
Refer to pg 287-288
Write the pseudocode that would output the following prompt. Make sure that symbol and no_rows are input:
&&&&&
&&&&&
&&&&&
Depends
How does a linked list store data.
How many bones are in the human body?
206
Give at least five built-in string manipulation functions.
Refer to page 260 It's too many to type, my apologies.
Describe the three types of errors
Syntax Error
Runtime Error
Logic Error
Description I think you got it already.