Question 1
1 markDid your answer earn the marks?
25 original exam-style questions - 10 pages of questions with a full mark scheme - free printable PDF.
fileSizes = [500000, 2000000, 15000000]
FOR i = 0 TO 2
sizeInMB = fileSizes[i] / 1000000
IF sizeInMB >= 1 THEN
OUTPUT "Large"
ELSE
OUTPUT "Small"
ENDIF
NEXT inumIntegers = input("Enter number of integer variables: ")
numChars = input("Enter number of character variables: ")
totalBytes = (numIntegers * 4) + (numChars * 1)
print(totalBytes)This checks your answers in your browser, stores nothing on a server and needs no account.