WorksheetsQuizz
Total questions: 111
Worksheet time: 1hrs 15mins
Which keyword is used for function?*
define
fun
def
function
Which of the following items are present in the function header?
function name
parameter list
return value
Both A and B
If the return statement is not used inside the function, the function will return:
0
None
Null
Arbitary value
What is a recursive function?
A function that calls other function.
A function which calls itself.
Both A and B
None of the above
Which of the following function headers is correct?*
def fun(a = 2, b = 3, c)
def fun(a = 2, b, c = 3)
def fun(a, b = 2, c = 3)
def fun(a, b, c = 3, d)
In which part of memory does the system store the parameter and local variables of a function call?
heap
stack
Uninitialized data segment
None of the above
How is a function declared in Python?*
def function function_name():
declare function function_name():
def function_name():
declare function_name():
Which one of the following is the correct way of calling a function?
function_name()
call function_name()
ret function_name()
function function_name()
Which of the following functions is a built-in function in python?
array()
sqrt()
factorial()
print()
What will be the output of the following Python expression? round(4.576)
4.5
5
4
4.6
What will be the output of the following Python expression? round(4.5676,2)
4.5
4.6
4.57
4.56
A Python module is a file with the _____ file extension that contains valid Python code.
.pym
.pymodule
.module
.py
What is returned by math.ceil(3.4)?
3
4
4.0
3.0
Which statement is correct to import all modules from the package
from package import all
from package import *
from package include all
from package include *
(a) is a string literal denoted by triple quotes for providing the specifications of certain program elements.
Which of the following is not a valid namespace?
Global namespace
Public namespace
Built-in namespace
Local namespace
What is the order of namespaces in which Python looks for an identifier?
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the built-in namespace, then the global namespace and finally the local namespace
Python first searches the built-in namespace, then the local namespace and finally the global namespace
The collection of modules and packages that together cater to a specific type of applications or requirements, is called______
module
library
classes
documentation
The help statement display ___ from a module.
constants
functions
classes
docstrings
10#40#70#
30#40#50#
50#60#70#
40#50#70#
a=10
a=20
syntax error
value error
What does the command word 'Calculate' mean?
Identify
Describe
Work out from given facts, figures or information
State
When the command word 'Compare' is used, what is expected from the candidates?
Give precise meaning
Set out the main points
Identify/comment on similarities and/or differences
Provide structured evidence that leads to a given result
What is the meaning of the command word 'Define'?
Judge or calculate the quality, importance, amount or value of something
give precise meaning
Express in clear terms
Show how or give an example
When the command word 'Show (that)' is used, what is expected from the candidates?
Produce an answer from a given source or recall/memory
State the points of a topic / give characteristics and main features
Provide structured evidence that leads to a given result
Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence
What does the command word 'Describe' mean?
Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals
Give precise meaning
State the points of a topic / give characteristics and main features
set out the main points
When the command word 'Evaluate' is used, what is expected from the candidates?
Set out the main points
Judge or calculate the quality, importance, amount or value of something
Express in clear terms
Work out from given facts, figures or information
What is the meaning of the command word 'Explain'?
Provide structured evidence that leads to a given result
Give precise meaning
Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence
Identify/comment on similarities and/or differences
When the command word 'Give' is used, what is expected from the candidates?
Produce an answer from a given source or recall/memory
Identify/comment on similarities and/or differences
Set out the main points
Work out from given facts, figures or information
What does the command word 'Identify' mean?
Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals
Give precise meaning
Name/select/recognise
Judge or calculate the quality, importance, amount or value of something
When the command word 'Outline' is used, what is expected from the candidates?
Give precise meaning
Set out the main points
Provide structured evidence that leads to a given result
Identify/comment on similarities and/or differences
When the command word 'State' is used, what is expected from the candidates?
Express in clear terms
Work out from given facts, figures or information
Identify/comment on similarities and/or differences
Give precise meaning
What does the command word 'Suggest' mean?
Identify/comment on similarities and/or differences
Judge or calculate the quality, importance, amount or value of something
Apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals
Set out purposes or reasons / make the relationships between things evident / provide why and/or how and support with relevant evidence
In Cambridge IGCSE 0478 Computer Science Standards,
Pseudocode is presented in a monospaced (fixed-width) font and will be consistent throughout.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
Pseudocode is presented in a multi-spaced (flexi-width) font and will be consistent throughout.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
Generally, Pseudocodes are indented by four (4) spaces.
True
False
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.
True
False
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.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
KEYWORDS can be lower or upper case.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
KEYWORDS are in upper case.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
Identifiers are in mixed case. (upper case or lower case)
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
Angled brackets < > are used to enclose meta-variables that can be substituted by other symbols.
True
False
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.
True
False
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.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
Putting a comment on a Pseudocode section to clarify is encouraged.
True
False
In Cambridge IGCSE 0478 Computer Science Standards,
The symbol for comment in Pseudocode is...
</ comment />
// comment
< comment >
// comment //
In Cambridge IGCSE 0478 Computer Science Standards,
is the atomic datatype keyword for whole number
INTEGER
BOOLEAN
STRING
CHAR
REAL
In Cambridge IGCSE 0478 Computer Science Standards,
is the atomic datatype keyword for a sequence of zero or more characters.
INTEGER
BOOLEAN
STRING
CHAR
REAL
In Cambridge IGCSE 0478 Computer Science Standards,
is the atomic datatype keyword for numbers capable of containing fractional part.
INTEGER
BOOLEAN
STRING
CHAR
REAL
In Cambridge IGCSE 0478 Computer Science Standards,
is the atomic datatype keyword for TRUE OR FALSE logical values.
LOGIC
BOOLEAN
GATES
CHAR
REAL
In Cambridge IGCSE 0478 Computer Science Standards,
it is the atomic datatype keyword for a single character
CHARACTER
BOOLEAN
STRING
CHAR
ALPHABET
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.
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
when writing Identifiers should be considered as mixed case throughout.
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
when writing Identifiers, it should be considered as case - sensitive.
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
assignments should be made in the following format:
<identifier> --> <value>
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
assignments should be made in the following format:
<identifier> <-- <value>
TRUE
FALSE
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"
TRUE
FALSE
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"
TRUE
FALSE
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).
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
A statement should NOT, however, refer to a group of array elements individually.
StudentNames [ 1 TO 30] <-- " "
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
A statement CAN refer to a group of array elements individually.
StudentNames [ 1 TO 30] <-- " "
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
multiple values are allowed for INPUT and OUTPUT statements
TRUE
FALSE
In Cambridge IGCSE 0478 Computer Science Standards,
The identifier of a COUNT controlled (FOR) loop must be a variable of data type INTEGER.
TRUE
FALSE
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
Checksum
Parity Check
ARQ
None of above Options
re-calculation made on any additional data values sent to the recipient
Checksum
Parity Check
ARQ
None of above Options
Data is sent in blocks or packets
Checksum
Echo Check
ARQ
None of above Options
A method that can determine which bit in a data stream has been changed
Checksum
Parity Check
ARQ
None of above Options
An additional value sent at the end of a block of data to be used to check if any data transmission error occurred
Check Sum
Parity Check
Automatic Repeat Request (ARQ
Echo Check
What does ARQ stand for?
(a)
Extra bit sent with each byte of data
Checksum
Parity check
ARQ
Which of the following is the form of error detection that makes use of the system of acknowledgements and timeouts?
parity bit
ARQ
cyclic redundancy check
check digit
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?
echo check
checksum
ARQ
check digit
Which of the following correctly represents the data 1101011 if odd parity is used?
01101011
11101011
11010110
11101011
What validation type uses the last one digit to check the other digits are correct?
Check digit
Checksum
Parity check
Echo check
0000 0000
A Check Digit is included with a barcode because
There can be errors in scanned numbers and the barcode needs to be checked for accuracy.
There can be security issues with some barcodes and the check digit gives additional security.
There may be newer products added to a category and the check digit is for each new sub category.
There may be issues with the self-service checkout, and the check digit ensures that all products get scanned smoothly.
The Barcode used for books is called
ISBN
Modulo 11
VIN
QR code
If check digits weren't used...
Errors could regularly occur at the point of sale; that could cost either the vendor or the customer.
Barcodes would take longer to scan.
Less errors would occur in shopping, meaning shoppers at self service checkouts would not have to wait for errors in the weighing scales.
It would be difficult to buy imported goods as their barcodes would not work properly with out systems.
Which is a disadvantage of parity checking?
We cannot locate where the error is
It takes a long time to calculate
It can only be done once
It is expensive to design
How does an ARQ check work?
The sender resends the data if it does not receive confirmation after a certain amount of time
The sender compares the sent data to the original and sees if an error occurred
The receiver checks with the sender to find out whether the data was sent correctly
The sender checks whether the receiver has received the data by performing a calculation on a check digit
Which of these is NOT part of the header?
Packet Number
Sender IP Address
Receiver IP Address
Name of File
The components of a packet are...
Header, Payload, Trailer
Head, Middle, End
Header, data, Trailer
Head, data, Tail
In packet switching each packet will follow the same route
True
False
What is packet switching?
A method of data transmission
Data transmission
Optimum route
How is data sent?
Splitting them up
One huge packet
What is the correct order for sending a file?
Split data into packets - label each packet - send packets down different routes - read the address of each packet - put packets back together
Split data into packets - send packets down different routes - label each packet - read the address of each packet - put packets back together
Which piece of Packet Header data allows your computer to reassemble the data?
Packet Number
Recipient Address
Size of Packet
Which piece of Packet Header data ensures the packet goes to the correct computer?
Packet Number
Recipient Address
Size of Packet
Packets are all sent down the same route to reach the recipient
True
False
Packets are split up when ______ and reassembled when _______
Sent...Received
Received...Sent
Taking a secret message and reproducing the original plain text is known as?
Caesar Cipher
Encryption
Cipher Text
Decryption
Asymmetric encryption uses only 1 key.
True
False
Maybe
God Knows
'hello' has been encrypted with Caesar cipher to 'khoor'. The key used was:
12345
The process of converting plaintext to ciphertext.
cryptography
cyphertext
decryption
encryption
Information that is readable without performing any cryptographic operations.
cryptography
plaintext
encryption
decryption
A string of text that has been converted to a secure form using encryption.
encryption
decryption
ciphertext
plaintext
The process of converting a ciphertext into plaintext.
encryption
decryption
plaintext
cryptography
What is encryption?
Building tombs
Protecting data by scrambling it
Unscrambling data to read it
Exploring church basements
An individual can have many public keys.
TRUE
FALSE
