In Python, which data type would best store the value 17.5?
Software Design And Development
Question · Easy
What is the result of 17 MOD 5?
Which operator tests whether two values are NOT equal in most exam reference languages?
Question · Medium
What does the logical expression (age >= 18) AND (hasLicence == True) evaluate to when age is 17 and hasLicence is True?
Which control structure should be used when a block of code must run exactly 10 times?
Look at the Python code: for i in range(1, 6): print(i). How many numbers are printed?
Question · Hard
Which pre-defined function returns a random integer between 1 and 6 inclusive in Python?
Which pre-defined function rounds 4.67 to the nearest whole number?
A user-defined function adds VAT at 20 per cent. Which line correctly defines it in Python with a parameter price?
What is a parameter in programming?
In Python, given names = ['Iona', 'Fraser', 'Anya', 'Kai'], what does names[0] return?
An array stores 50 marks. Which loop correctly iterates through every element in Python using indexes?
What is the result of the Python expression 'Glas' + 'gow'?
What does len('Edinburgh') return in Python?
Which is an example of analysis in the software development process?
Which design notation breaks a problem into a hierarchy of sub-tasks?
Which Python construct is a conditional loop that always runs at least once?
What is the output of: x = 10\nif x > 5:\n print('big')\nelse:\n print('small')
What is the value of math.sqrt(81) in Python?
Which statement about boolean values is true?
A program calculates average mark for a class. Which is a functional requirement?
What is the index of the last element of a Python list of length 8?
What does the expression 'Aberdeen'[0:3] return in Python?
Why is a sub-program (function or procedure) used in a structured program?
Look at the pseudocode: SEND age TO DISPLAY. What kind of step is this?
Which type of test data is at the very boundary of an accepted range, such as 0 or 100 for marks out of 100?
Software Testing
Which error occurs when code breaks the rules of the language and will not run at all?
A program adds two numbers but returns the difference instead. Which type of error is this?
Which testing approach checks program behaviour using only inputs and outputs, without looking at the source code?
What is the main purpose of a trace table?
Which set of test data would test marks = 50 as normal data for a 0-100 mark range?
While testing a Python program, dividing by zero raises ZeroDivisionError. Which error type is this?
A function checks if a username has between 4 and 12 characters. Which value is exceptional test data?
White-box testing differs from black-box testing because it...
Look at this code:\nfor i in range(1, 4):\n total = total + i\nIf total starts at 0, what is the final value?
Which statement about data types in N5 Computing is correct?
Information System Design
How many bits are in a byte?
Which is the correct order of storage units from smallest to largest?
Convert the decimal number 13 to an 8-bit binary value.
How many different characters can be represented using 8-bit ASCII?
A bitmap image is 800 pixels wide, 600 pixels tall and uses a 24-bit colour depth. What is its file size in bytes (before compression)?
Sound is sampled at 44 100 Hz with a 16-bit depth in mono for 10 seconds. What is the uncompressed file size in bytes?
Which compression method permanently removes data to reduce file size?
JPEG and MP3 are best described as which kind of file format?
Which component performs arithmetic and logical operations inside the CPU?
Computer Systems
Which CPU register holds the address of the next memory location to be accessed?
Which is true about RAM?
Which storage device has no moving parts and uses flash memory chips?
Loading more…