Worksheets2.2 Programming Techniques
Total questions: 22
Worksheet time: 11mins
Which of the following is a valid keyword for an output? (1-4)
Consider the following expression: a=b. This means: (6-9)
Which of the following is not a valid data type? (1-4)
Float
Integer
Quotation marks around a variable’s value imply (1-4)
The multiplication table is best displayed using this data type (4-6)
This variable type can only have True or False values (1-4)
Casting refers to: (4-6)
The operator used to find the remainder after division of two integers (4-6)
The statement A OR B implies A and B are:
This function calculates the length of a string (4-6)
The main difference between procedures & functions is
The flowchart shape for selection is
5.23 would be stored as:
Integer
Float
String
Character
Boolean
Which line of code lets us input an integer?
int(input("enter a number"))
input("Enter a number")
str(input("Enter a number"))
import random
Complete this sentence: ……………………… is used to execute a particular set of statements repeatedly until a condition is satisfied.
Which of the following programming construct is used to print out multiplication tables?
Which of the following represents labels that represent values in computer and that can be changed during program execution?
Which statement is used to extract data from a database?
Extract
Get
Open
Select
With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” is "Andy"
SELECT * FROM FirstName WHERE Persons
SELECT * FROM Persons WHERE FirstName = "A*"
SELECT * FROM Persons WHERE FirstName ="Andy"’
SELECT FirstName FROM Persons WHERE FirstName="Andy"
