WorksheetsN5 SDD
Total questions: 9
Worksheet time: 5mins
You are to create a program that asks the user to enter their date of birth, the program will then tell the user how many days they have been alive for.
What is the input/process/output for this scenario
Input:Date of Birth
Process: calculate number of days between DOB and today
Output: Number of days alive
Input:Date of Birth
Process: Number of days alive
Output: calculate number of days between DOB and today
Input:Date of Birth
Process: Subtraction
Output: Age
Input:Age
Process: Subtraction
Output: Days alive
Select the logical operator
FOR
While
AND
=
Select the logical operator below
IF
WHILE
OR
SELECT
Choose the logical operator
:
NULL
NOT
WHERE
Select all the pre-defined functions
Round
Length
Random
WHILE
What is the correct code to generate a random number between 1 and 10
This is correct input validation
TRUE
FALSE
Input validation requires what kind of loop
WHILE
FOR
IF
LOOP
This code will calculate the length of the string stored in the variable name_length
True
False
