Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quizz

Total questions: 111

Worksheet time: 1hrs 15mins

Name
Class
Date
1.

Which keyword is used for function?*

a)

define

b)

fun

c)

def

d)

function

2.

Which of the following items are present in the function header?

a)

function name

b)

parameter list

c)

return value

d)

Both A and B

3.

If the return statement is not used inside the function, the function will return:

a)

0

b)

None

c)

Null

d)

Arbitary value

4.

What is a recursive function?

a)

A function that calls other function.

b)

A function which calls itself.

c)

Both A and B

d)

None of the above

5.

Which of the following function headers is correct?*

a)

def fun(a = 2, b = 3, c)

b)

def fun(a = 2, b, c = 3)

c)

def fun(a, b = 2, c = 3)

d)

def fun(a, b, c = 3, d)

6.

In which part of memory does the system store the parameter and local variables of a function call?

a)

heap

b)

stack

c)

Uninitialized data segment

d)

None of the above

7.

How is a function declared in Python?*

a)

def function function_name():

b)

declare function function_name():

c)

def function_name():

d)

declare function_name():

8.

Which one of the following is the correct way of calling a function?

a)

function_name()

b)

call function_name()

c)

ret function_name()

d)

function function_name()

9.

Which of the following functions is a built-in function in python?

a)

array()

b)

sqrt()

c)

factorial()

d)

print()

10.

What will be the output of the following Python expression? round(4.576)

a)

4.5

b)

5

c)

4

d)

4.6

11.

What will be the output of the following Python expression? round(4.5676,2)

a)

4.5

b)

4.6

c)

4.57

d)

4.56

12.

A Python module is a file with the _____ file extension that contains valid Python code.

a)

.pym

b)

.pymodule

c)

.module

d)

.py

13.

What is returned by math.ceil(3.4)?

a)

3

b)

4

c)

4.0

d)

3.0

14.

Which statement is correct to import all modules from the package

a)

from package import all

b)

from package import *

c)

from package include all

d)

from package include *

15.

(a)   is a string literal denoted by triple quotes for providing the specifications of certain program elements.

16.

Which of the following is not a valid namespace?

a)

Global namespace

b)

Public namespace

c)

Built-in namespace

d)

Local namespace

17.

What is the order of namespaces in which Python looks for an identifier?

a)

Python first searches the global namespace, then the local namespace and finally the built-in namespace

b)

Python first searches the local namespace, then the global namespace and finally the built-in namespace

c)

Python first searches the built-in namespace, then the global namespace and finally the local namespace

d)

Python first searches the built-in namespace, then the local namespace and finally the global namespace

18.

The collection of modules and packages that together cater to a specific type of applications or requirements, is called______

a)

module

b)

library

c)

classes

d)

documentation

19.

The help statement display ___ from a module.

a)

constants

b)

functions

c)

classes

d)

docstrings

20.
a)

10#40#70#

b)

30#40#50#

c)

50#60#70#

d)

40#50#70#

21.
a)

a=10

b)

a=20

c)

syntax error

d)

value error

22.
4 lines
23.
4 lines
24.

What does the command word 'Calculate' mean?

a)

Identify

b)

Describe

c)

Work out from given facts, figures or information

d)

State

25.

When the command word 'Compare' is used, what is expected from the candidates?

a)

Give precise meaning

b)

Set out the main points

c)

Identify/comment on similarities and/or differences

d)

Provide structured evidence that leads to a given result

26.

What is the meaning of the command word 'Define'?

a)

Judge or calculate the quality, importance, amount or value of something

b)

give precise meaning

c)

Express in clear terms

d)

Show how or give an example

27.

When the command word 'Show (that)' is used, what is expected from the candidates?

a)

Produce an answer from a given source or recall/memory

b)

State the points of a topic / give characteristics and main features

c)

Provide structured evidence that leads to a given result

d)

Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence

28.

What does the command word 'Describe' mean?

a)

Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals

b)

Give precise meaning

c)

State the points of a topic / give characteristics and main features

d)

set out the main points

29.

When the command word 'Evaluate' is used, what is expected from the candidates?

a)

Set out the main points

b)

Judge or calculate the quality, importance, amount or value of something

c)

Express in clear terms

d)

Work out from given facts, figures or information

30.

What is the meaning of the command word 'Explain'?

a)

Provide structured evidence that leads to a given result

b)

Give precise meaning

c)

Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence

d)

Identify/comment on similarities and/or differences

31.

When the command word 'Give' is used, what is expected from the candidates?

a)

Produce an answer from a given source or recall/memory

b)

Identify/comment on similarities and/or differences

c)

Set out the main points

d)

Work out from given facts, figures or information

32.

What does the command word 'Identify' mean?

a)

Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals

b)

Give precise meaning

c)

Name/select/recognise

d)

Judge or calculate the quality, importance, amount or value of something

33.

When the command word 'Outline' is used, what is expected from the candidates?

a)

Give precise meaning

b)

Set out the main points

c)

Provide structured evidence that leads to a given result

d)

Identify/comment on similarities and/or differences

34.

When the command word 'State' is used, what is expected from the candidates?

a)

Express in clear terms

b)

Work out from given facts, figures or information

c)

Identify/comment on similarities and/or differences

d)

Give precise meaning

35.

What does the command word 'Suggest' mean?

a)

Identify/comment on similarities and/or differences

b)

Judge or calculate the quality, importance, amount or value of something

c)

Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals

d)

Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence

36.

In Cambridge IGCSE 0478 Computer Science Standards,

Pseudocode is presented in a monospaced (fixed-width) font and will be consistent throughout.

a)

True

b)

False

37.

In Cambridge IGCSE 0478 Computer Science Standards,

Pseudocode is presented in a multi-spaced (flexi-width) font and will be consistent throughout.

a)

True

b)

False

38.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces.

a)

True

b)

False

39.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces. But THEN & ELSE clause in an IF statement is indented by two (2) spaces.

a)

True

b)

False

40.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces. But THEN & ELSE clause in an IF statement is indented by three (3) spaces.

a)

True

b)

False

41.

In Cambridge IGCSE 0478 Computer Science Standards,

KEYWORDS can be lower or upper case.

a)

True

b)

False

42.

In Cambridge IGCSE 0478 Computer Science Standards,

KEYWORDS are in upper case.

a)

True

b)

False

43.

In Cambridge IGCSE 0478 Computer Science Standards,

Identifiers are in mixed case. (upper case or lower case)

a)

True

b)

False

44.

In Cambridge IGCSE 0478 Computer Science Standards,

Angled brackets < > are used to enclose meta-variables that can be substituted by other symbols.

a)

True

b)

False

45.

In Cambridge IGCSE 0478 Computer Science Standards,

Line numbers are used for each line of statement. However, when a statement runs over one line of text, the continuation lines are not numbered.

a)

True

b)

False

46.

In Cambridge IGCSE 0478 Computer Science Standards,

Line numbers are used for each line of statement including when it runs over one line of text.

a)

True

b)

False

47.

In Cambridge IGCSE 0478 Computer Science Standards,

Putting a comment on a Pseudocode section to clarify is encouraged.

a)

True

b)

False

48.

In Cambridge IGCSE 0478 Computer Science Standards,

The symbol for comment in Pseudocode is...

a)

</ comment />

b)

// comment

c)

< comment >

d)

// comment //

49.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for whole number

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

50.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for a sequence of zero or more characters.

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

51.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for numbers capable of containing fractional part.

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

52.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for TRUE OR FALSE logical values.

a)

LOGIC

b)

BOOLEAN

c)

GATES

d)

CHAR

e)

REAL

53.

In Cambridge IGCSE 0478 Computer Science Standards,

it is the atomic datatype keyword for a single character

a)

CHARACTER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

ALPHABET

54.

In Cambridge IGCSE 0478 Computer Science Standards,

it is a good practice to use identifier names that describe the variable, procedure, or function they refer to.

a)

TRUE

b)

FALSE

55.

In Cambridge IGCSE 0478 Computer Science Standards,

when writing Identifiers should be considered as mixed case throughout.

a)

TRUE

b)

FALSE

56.

In Cambridge IGCSE 0478 Computer Science Standards,

when writing Identifiers, it should be considered as case - sensitive.

a)

TRUE

b)

FALSE

57.

In Cambridge IGCSE 0478 Computer Science Standards,

assignments should be made in the following format:

<identifier> --> <value>

a)

TRUE

b)

FALSE

58.

In Cambridge IGCSE 0478 Computer Science Standards,

assignments should be made in the following format:

<identifier> <-- <value>

a)

TRUE

b)

FALSE

59.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, only one index value is used for each dimension in the square brackets. e.g. StudentNames[1] <-- "Ali"

a)

TRUE

b)

FALSE

60.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, only multiple index value can be used for each dimension in the square brackets. e.g. StudentNames[1] <-- "Ali", "George", "Rebecca"

a)

TRUE

b)

FALSE

61.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, can be used in assignment statements (provided they have the same size and data type).

a)

TRUE

b)

FALSE

62.

In Cambridge IGCSE 0478 Computer Science Standards,

A statement should NOT, however, refer to a group of array elements individually.

StudentNames [ 1 TO 30] <-- " "

a)

TRUE

b)

FALSE

63.

In Cambridge IGCSE 0478 Computer Science Standards,

A statement CAN refer to a group of array elements individually.

StudentNames [ 1 TO 30] <-- " "

a)

TRUE

b)

FALSE

64.

In Cambridge IGCSE 0478 Computer Science Standards,

multiple values are allowed for INPUT and OUTPUT statements

a)

TRUE

b)

FALSE

65.

In Cambridge IGCSE 0478 Computer Science Standards,

The identifier of a COUNT controlled (FOR) loop must be a variable of data type INTEGER.

a)

TRUE

b)

FALSE

66.

A verification method used to check if data transferred has been altered or corrupted ; calculating from block of being sent, the ________ value is sent after each data block

a)

Checksum

b)

Parity Check

c)

ARQ

d)

None of above Options

67.

re-calculation made on any additional data values sent to the recipient

a)

Checksum

b)

Parity Check

c)

ARQ

d)

None of above Options

68.

Data is sent in blocks or packets

a)

Checksum

b)

Echo Check

c)

ARQ

d)

None of above Options

69.

A method that can determine which bit in a data stream has been changed

a)

Checksum

b)

Parity Check

c)

ARQ

d)

None of above Options

70.

An additional value sent at the end of a block of data to be used to check if any data transmission error occurred

a)

Check Sum

b)

Parity Check

c)

Automatic Repeat Request (ARQ

d)

Echo Check

71.

What does ARQ stand for?

(a)  

72.

Extra bit sent with each byte of data

a)

Checksum

b)

Parity check

c)

ARQ

73.

Which of the following is the form of error detection that makes use of the system of acknowledgements and timeouts?

a)

parity bit

b)

ARQ

c)

cyclic redundancy check

d)

check digit

74.

Which of the following describes the check where the receiving computer sends back a copy of the data to the sending computer to allow it to compare the data?

a)

echo check

b)

checksum

c)

ARQ

d)

check digit

75.

Which of the following correctly represents the data 1101011 if odd parity is used?

a)

01101011

b)

11101011

c)

11010110

d)

11101011

76.

What validation type uses the last one digit to check the other digits are correct?

a)

Check digit

b)

Checksum

c)

Parity check

d)

Echo check

77.
In an even parity scheme, what would be the correct parity bit for the binary string:
0000 0000
a)
0 0000 0000
b)
1 0000 0000
c)
0000 0000 0
d)
1 1000 0000
78.

A Check Digit is included with a barcode because

a)

There can be errors in scanned numbers and the barcode needs to be checked for accuracy.

b)

There can be security issues with some barcodes and the check digit gives additional security.

c)

There may be newer products added to a category and the check digit is for each new sub category.

d)

There may be issues with the self-service checkout, and the check digit ensures that all products get scanned smoothly.

79.

The Barcode used for books is called

a)

ISBN

b)

Modulo 11

c)

VIN

d)

QR code

80.

If check digits weren't used...

a)

Errors could regularly occur at the point of sale; that could cost either the vendor or the customer.

b)

Barcodes would take longer to scan.

c)

Less errors would occur in shopping, meaning shoppers at self service checkouts would not have to wait for errors in the weighing scales.

d)

It would be difficult to buy imported goods as their barcodes would not work properly with out systems.

81.

Which is a disadvantage of parity checking?

a)

We cannot locate where the error is

b)

It takes a long time to calculate

c)

It can only be done once

d)

It is expensive to design

82.

How does an ARQ check work?

a)

The sender resends the data if it does not receive confirmation after a certain amount of time

b)

The sender compares the sent data to the original and sees if an error occurred

c)

The receiver checks with the sender to find out whether the data was sent correctly

d)

The sender checks whether the receiver has received the data by performing a calculation on a check digit

83.

Which of these is NOT part of the header?

a)

Packet Number

b)

Sender IP Address

c)

Receiver IP Address

d)

Name of File

84.

The components of a packet are...

a)

Header, Payload, Trailer

b)

Head, Middle, End

c)

Header, data, Trailer

d)

Head, data, Tail

85.

In packet switching each packet will follow the same route

a)

True

b)

False

86.

What is packet switching?

a)

A method of data transmission

b)

Data transmission

c)

Optimum route

87.

How is data sent?

a)

Splitting them up

b)

One huge packet

88.
Packet Switching ensures the entire file will always reach the recipient
a)
True
b)
False
89.

What is the correct order for sending a file?

a)

Split data into packets - label each packet - send packets down different routes - read the address of each packet - put packets back together

b)

Split data into packets - send packets down different routes - label each packet - read the address of each packet - put packets back together

90.

Which piece of Packet Header data allows your computer to reassemble the data?

a)

Packet Number

b)

Recipient Address

c)

Size of Packet

91.

Which piece of Packet Header data ensures the packet goes to the correct computer?

a)

Packet Number

b)

Recipient Address

c)

Size of Packet

92.
What is a payload?
a)
A small packet
b)
The actual data that is sent
c)
A small number of bytes
d)
A transmission rule
93.
Which is not part of a data packet?
a)
Destination address
b)
Payload
c)
Route instructions
d)
Error control bits
94.
Why is packet switching efficient?
a)
Small packets travel faster
b)
Some cables cannot handle larger packets
c)
Each packet is sent down the fastest route at that time
95.

Packets are all sent down the same route to reach the recipient

a)

True

b)

False

96.

Packets are split up when ______ and reassembled when _______

a)

Sent...Received

b)

Received...Sent

97.
What type of key is not shared and computers cannot decrypt a message without it?
a)
Free key
b)
Private key
c)
Public key
d)
Personal key
98.
If the same key is used to encrypt and decrypt a message, this is known as? 
a)
Symmetric encryption
b)
Encryption doesn't exist!
c)
Asymmetric encryption
d)
Same-key encryption
99.
What type of key can be freely shared with anyone so that they can encrypt a message?
a)
Personal key
b)
Private key
c)
Free key
d)
Public key
100.
All Public Keys have a matching Private Key
a)
True
b)
False
101.
If you were to use a caeser cipher with a key of 3 shifts to the left, how would you encrypt the word: Cipher?
a)
ZAMEBO
b)
ZOMEBO
c)
ZFMEBO
d)
ZFMEBA
102.

Taking a secret message and reproducing the original plain text is known as?

a)

Caesar Cipher

b)

Encryption

c)

Cipher Text

d)

Decryption

103.

Asymmetric encryption uses only 1 key.

a)

True

b)

False

c)

Maybe

d)

God Knows

104.

'hello' has been encrypted with Caesar cipher to 'khoor'. The key used was:

a)
abc
b)
3
c)
2
d)

12345

105.

The process of converting plaintext to ciphertext.

a)

cryptography

b)

cyphertext

c)

decryption

d)

encryption

106.

Information that is readable without performing any cryptographic operations.

a)

cryptography

b)

plaintext

c)

encryption

d)

decryption

107.

A string of text that has been converted to a secure form using encryption.

a)

encryption

b)

decryption

c)

ciphertext

d)

plaintext

108.

The process of converting a ciphertext into plaintext.

a)

encryption

b)

decryption

c)

plaintext

d)

cryptography

109.

What is encryption?

a)

Building tombs

b)

Protecting data by scrambling it

c)

Unscrambling data to read it

d)

Exploring church basements

110.
What type of key can be freely shared with anyone so that they can encrypt a message?
a)
Personal key
b)
Private key
c)
Free key
d)
Public key
111.

An individual can have many public keys.

a)

TRUE

b)

FALSE