Programming With Small Basic Flashcards
What is input?
Input is where the user enters data. This could be the user typing data in.
What is output?
Output is where the program shows the user data. This could be a message on screen.
How do you make the program output the message “Hello world”?
Console.Writeline(“Hello world.”)
What command is used to make the program let a user type in data?
Console.Readline()
What is a variable?
In a computer program, a variable is used to store data.
How do you make the program store the user’s input?
name = Console.Readline() will store the user’s input in a variable called ‘name’.
How do you output the contents of a variable?
Console.Writeline(name) will output the data held in the variable ‘name’.
What is selection?
Selection is where a program checks a criteria, and the program responds accordingly.
What is a criteria?
The criteria is the check which the program performs.
What does the word criteria mean?
The criteria is what the program checks to see if it is the case. For example: score > 10
How would you make a program show “Well done” if the variable score is above 10?
If score > 10 then Console.Writeline(“Well done”)
End If
What does the command “ElseIf” do?
Allows additional criteria to be checked.
What does “Else” do?
This tells the program what to do if none of the criteria have been met.
What is iteration?
Iteration is makes commands repeat.
What are the two types of iteration?
Definite iteration and indefinite iteration.