Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
25 Cards in this Set
- Front
- Back
What is a null string? |
put" " |
|
What is a field? |
A field is an area of space on a line. You can set a field by typing a : followed by a positive integer after the data to be outputted. |
|
What happens when two field numbers are produced? |
~ the first specifies the total number of spaces put aside to hold the output q ~ the second gives the number of decimal places the output should display to |
|
Do trailing zeros have a value on Turing |
no |
|
What does picMerge vs picCopy? |
picMerge- merges into the background picCopy- paste it |
|
what does '..'do? |
· Two dots at the end of the put statement will move the cursor up to the prompt |
|
What types of variables are there and what are their differences |
Boolean: True or False real: decimal, no negatives integer: decimal and negatives string: " ", strings (anything w/n the quotes) |
|
What is a variable? |
Variables are special memory boxes that a programmer uses to hold data. For now, we will be looking at three types of variables |
|
What is this - ':= ' |
the assignment function for variables
|
|
What does :* do when your getting a string? |
It gets the entire string and not just the first word
|
|
what must be done in order to use a variable and what does the computer do about it ? |
You must declare the variable When a variable is created, the computer puts aside a little piece of memory for the program to use, and it identifies that memory with the name of the variable. The computer has a memory that is set up like a series of mailboxes in which information can be stored. Each mailbox has an address. |
|
What is Concatenation? |
using a plus sign outside quotes to combine strings |
|
What does declaring a variable do? |
1. Putting aside a memory box of a particular size 2. Setting the kind of data that can be stored in it 3. Giving the box a name. |
|
What is a Constant |
A constant is an identifier for a storage location, just like a variable. However, unlike a variable, once a constant has a value, that value cannot change for the remainder of the program. |
|
How do you declare a constant? |
Usually located in the variable declaration section of the program, the const statement is written as: . const identifier := value Where: identifier is the name of the constant; this follows the same naming rules that are for variables but should be in BLOCK CAPS. value is the data you want stored in the constant; this could be an explicit value or a variable that has a value or even a formula |
|
What are the two types of Boolean operators taught and what they do? |
and- if every test condition is true
or - if one of the test conditions are true |
|
How does an if- else statement work |
if (test condition )then if it is true then execute else if not then execute this end if |
|
What type of comparison operators does a test condition use? |
__- less than __- greater than __- equal to __- less than or equal to __- greater than or equal to __- not equal to |
|
What operators are you able to use in Turing? |
addition exponentiation subtraction division multiplication brackets div- division producing whole number answer mod- division producing remainder |
|
In a for loop what are the different parts |
range: the range that the control variable is restrained to index : the control variable step: the interval that the step changes by |
|
What goes inside a window declaration |
___"cursor", "nocursor" - Causes the cursor to be shown (or hidden). ___"echo", "noecho" - Causes (or suppresses) showing characters that are typed. ___"title:" - Causes the title of the active window to be set to . ___"position:;" - Causes the position of the upper left corner of the active window to be set to (x, y). OR : “left”, “center”, or “right”. : “top”, “middle”, or “bottom” ___"graphics:;" - Sets window to graphics with a size of pixels wide and pixels high. |
|
What must you do before you assign a window? |
declare it
|
|
What must you do to run a process ?
|
fork it.
|
|
What is tallying |
counting the number of occurrences in a loop
|
|
What is dummy data? |
Dummy data is allowing the user to enter something that would not usually be entered, to trigger the exit. |