Font size
WorksheetsComputer Science Quiz
Total questions: 119
Worksheet time: 1hrs 17mins
………..separated the programming task from computer operation tasks.
Algorithms
Data processors
High-level programming languages
Operating systems
THE(A) 17th-century computing machine that could perform addition and subtraction was the……
Pascaline
Jacquard loom
Analytical Engine
Babbage machine
After the instruction is decoded, the control unit sends the task order to a component in the CPU. What is this phase?
Fetch phase
Decode phase
Execute phase
None of the others
RAM is used as a short memory because it is
Volatile
Has small capacity
Is very expensive
Is programmable
None of the others
For surface organization of magnetic tape, the width of the tape is divided into nine tracks. Nine vertical locations can store 8 bits of information related to a byte plus a bit for……
Next block
Data
Next tape information
Error detection
IBM-PC is an example of
A mainframe
Machine-in-built
Microcomputer
Special purpose
None of the others
Instructions and memory addresses are represented by
Character codes
Binary codes
Binary word
Parity bit
None of the others
Computers are extremely fast and have fantastic memories. However, the only thing they can remember is
Instruction
Series of 1s and 0s
Boolean algebra
Logic theorems
None of the others
Which of the following is equivalent to 12 in decimal?
(1110)2
(C)16
(15)8
None of the others
A group containing…… bits in the binary system are represented as one digit in the octal system.
1
2
3
4
None of the others
Conversion of binary number 1010101000010111 to hexadecimal number is….
D8F9
A8B9
AA17
D9F8
None of the others
What is the result of storing -25 in an 8-bit memory location using two's complement representation?
00011001
00110010
11100111
11110010
The ASCII code for the character J is:
1001 0001
1001 1010
0100 1010
1010 0001
None of the others
If we call the bit depth or number of bits per sample B, the number of samples per second S, so how to calculate BIT RATE (R)?
B × 2S
2B × S
B × S
B² × S²
In the….. graphic method of representing an image in a computer, re-scaling of the image creates a ragged or grainy image.
Bitmap
Vector
Quantized
Binary
In the….. graphic method of representing an image in a computer, re-scaling of the image creates a ragged or grainy image.
Bitmap
Vector
Quantized
Binary
Use an arithmetic right shift operation on the bit pattern 1001 1000
0100 1100
1100 1100
1101 1001
1001 1000
Use a simple left shift operation on the bit pattern 1001 1000
0001 1001
0001 1010
0011 0000
0011 0001
Which physical topology uses a hub or switch?
Bus
Ring
Star
Bus and ring
The TCP/IP model has ….layers.
Five
Six
Seven
Eight
The format of an IPv6 address is referred to as……
Dotted-hexadecimal notation
Dotted-octal notation
Dotted-decimal notation
8- Hexadecimal digits
…..explicitly defines connection establishment, data transfer, connection teardown phases to provide a connection-oriented service AND reliable protocol.
TCP
UDP
IP
HTTP
In a …. the directory system listing of the peers and what they offer uses the client-server paradigm, but the storing and downloading of the files are done using the peer-to-peer paradigm.
WWW
Centralized network
Hybrid network
Decentralized network
THE(A) memory that does not change its contents without external causes is known as
Dynamic memory
Static memory
RAM
EEPROM
None of the others
Which of the following is the user-programmed semiconductor memory?
SRAM
DRAM
EPROM
All of the others
None of the others
Which of the following holds data and processing instructions temporarily until the CPU needs it?
ROM
Control unit
Main memory
Coprocessor chips
None of the others
THE(A) …. is a program in execution. It is a program that has started but has not finished.
Program
Job
Process
Task
What kind of state does a process execute until it needs I/O resources when I/O is complete?
Hold state
Ready state
Running state
Waiting state
……is a step-by-step method for solving a problem or doing a task.
A construct
A recursion
An iteration
An algorithm
…….hides all the details of an algorithm in an attempt to give the 'big picture' and to show how the algorithm flows from beginning to end.
Pseudocode
Unified Modeling Language (UML)
Flowchart
State diagram
------is a process in which an algorithm calls itself.
Insertion
Searching
Recursion
Iteration
In….. unsorted list.sort, the smallest item from the unsorted list is swapped with the item at the beginning of the list.
Selection
Bubble
Insertion
Every
The program in a high-level language is called the…..
Programming language
Source program
Translation
Interpretation
The code that should be adequate for present and anticipated data processing both for machine and human use is
Conciseness
Uniqueness
Operability
All of the others
None of the others
In the --- we can think of a program as an active agent that manipulates passive objects.
Procedural paradigm
Functional paradigm
Declarative paradigm
Object-oriented paradigm
----are names for memory locations.
Variables
Imperative language
Identifiers
Data type
THE(A) ……gives the user's view of a system: it shows how the user communicates with the system.
Class diagram
State diagram
Use-case diagram
Sequence diagram
One phase in system development is……
Analysis
Application
Designing
Collecting
……between modules in a software system must be maximized.
Coupling
Cohesion
Neither coupling nor cohesion
Both coupling and cohesion
What is quality referring to the ability to move software from one hardware platform to another?
Flexibility
Interoperability
Reusability
Changeability
Testing a software system can involve….. testing.
Black-box
Glass-box
Neither black-box nor glass-box
Both black-box and glass-box
THE(A) data structure can be …..
Only an array
Only a record
Only a linked list
An array, a record, or a linked list
THE(A) …..is a collection of related elements possibly of different types having a single name.
Array
Record
Linked list
Tree
Given a linked list called children, the pointer variable children identifies……. element of the linked list.
The first
The second
The last
Any
Inside the ADT are two different parts of the model that are…… and….
Data structure and operations
Application program and public operations
Application program and private oper
Inside the ADT are two different parts of the model that are…… and….
Data structure and operations
Application program and public operations
Application program and private operations
Data structure and application program
The-- of each node includes one of its children and all descendants of that child.
Left tree
Binary tree
Subtree
Right tree
The enqueue operation….. an item at the……. of the queue.
Delete/front
Delete/end
Inserts/front
Insert/rear
A-- is a collection of data stored in the internal format of the computer. This contains data that is meaningful only if it is properly interpreted by a program.
Text file
Binary file
Sequential file
EOF
When a sequential file is updated, the ….file contains a list of all errors occurring during the update process.
New master
Old master
Transaction
Error report
When a hashing algorithm produces an address for an insertion key and that address is already occupied, it is called a……
Collision
Probe
Synonym
Linked list
The intersection of a column and row in a spreadsheet is called a… or
Key
Field
Cell
Menu
None of the others
In the network database model, the entities are organized in a….. through several paths in which some entities can be accessed.
Graph
Tree
Array
Record
Each column in a relation is called…..
An attribute
A tuple
A union
An attitude
The unary……operation always results in a relation that has exactly one more row than the original relation.
Insert
Delete
Update
Select
……is the process by which a given set of relations are transformed to a new set of relations with a more solid structure.
Relational database
Database system
Atomic operations
Normalization
Which of the following attacks is threatening integrity?
Masquerading
Traffic Analysis
Denial of service
Encoding
Before transmission, the sender transforms the plaintext into the ciphertext-this is….
Plain text
Cipher text
Encryption
Decryption
The ethical principle that dictates that an act is ethical when a majority of people in society agrees with it is referred to as….
Moral rules
Utilization
Social contract
None of the others
……who create algorithms to break existing internet networks so as to solve the loopholes in them
……who create algorithms to break existing internet networks so as to solve the loopholes in them.
Black Hat Hacker
Grey Hat Hacker
White Hat Hacker
Blue Hat Hacker
In a stream cipher encryption and decryption are done one symbol. We have a plaintext stream, a ciphertext stream, and a …..
Key block
Single key
Key stream
Auto key
The RSA algorithm for confidentiality uses….. cryptography.
Asymmetric-key
Symmetric-key
Substitution
Transposition
What is the binary representation of instructions?
What is the hexadecimal representation of the decimal number 12?
A
B
C
How many bits are used to represent each digit in octal?
1 bit
2 bits
3 bits
What is the hexadecimal representation of the binary number 1010101000010111?
(a)
What is the two's complement representation of -25 in 8 bits?
(a)
What is the ASCII representation of the letter J?
(a)
What is the formula for bit rate?
(a)
What type of image has a fixed resolution and pixelation when zoomed?
(a)
What is the result of an arithmetic right shift?
What happens when you perform a left shift?
What type of network uses a hub or switch as the center?
(a)
How many layers are there in the TCP/IP model?
(a)
How many hexadecimal groups are in an IPv6 address?
What does TCP stand for?
What is a hybrid network?
What is a Hybrid Network?
Client-Server model
P2P model
Combination of Client-Server and P2P
None of the above
What is Static Memory?
Memory that changes content
Memory that does not change content without external influence
Memory that requires constant refreshing
None of the above
What is EPROM?
A type of volatile memory
A type of non-volatile memory that can be programmed and erased
A type of memory that cannot be programmed
None of the above
What is Main Memory?
Memory that holds data temporarily for CPU processing
Permanent storage memory
Memory that does not require refreshing
None of the above
What is a Process?
A program in execution
A type of memory
A storage device
None of the above
What is a Waiting State?
A state when a process is executing
A state when a process is waiting for I/O resources
A state when a process is terminated
None of the above
What is an Algorithm?
A random set of instructions
A step-by-step method to solve a problem
A type of data structure
None of the above
What is a Flowchart?
A visual representation of an algorithm
A type of programming language
A data storage method
None of the above
What is Recursion?
A method where a function calls itself
A type of loop
A data structure
None of the above
What is Selection Sort?
An algorithm that finds the smallest element and swaps it with the first element
A type of search algorithm
A sorting method that does not require comparisons
None of the above
What is a Source Program?
Code written in high-level programming language
Machine code
A type of database
None of the above
What is Operability?
Ensuring code works well on machines and is understandable by humans
A type of software
A programming paradigm
None of the above
What is Object-oriented paradigm?
A programming style that treats programs as agents manipulating objects
A type of data structure
A method of sorting data
None of the above
What is a Variable?
A name used to store data in memory
A type of function
A method of sorting
None of the above
What is the name used to store data in memory?
Variable
Use-case diagram
Analysis
Cohesion
What does a Use-case diagram represent?
User's view of a system
Data structure
Algorithm
Module
What is the first step in system development?
Analysis
Design
Implementation
Testing
What should be maximized within a module?
Cohesion
Coupling
Complexity
Size
What does Interoperability allow software to do?
Switch between different hardware platforms
Store data
Execute algorithms
Visualize data
What types of testing are included in both black-box and glass-box testing?
Both black-box and glass-box testing
Only black-box testing
Only glass-box testing
Unit testing
What can a data structure be?
An array, a record, or a linked list
Only an array
Only a record
Only a linked list
What is a Record?
A collection of elements of different types with the same name
A single data type
A type of algorithm
A data structure
What does the pointer of a linked list usually point to?
The first element
The last element
A random element
Null
What does an Abstract Data Type (ADT) consist of?
Data structure and operations
Only data structure
Only operations
None of the above
What does a Subtree of a node include?
One of its children and all descendants of that child
Only the node itself
All nodes in the tree
None of the above
What is the principle of a Queue?
FIFO, insert at rear and remove from front
LIFO, insert at front and remove from rear
Random access
None of the above
What is a Binary file?
Stores data in binary format
Stores data in text format
Stores data in JSON format
None of the above
What is an Error report?
A report generated when updating a sequential file
A report generated for successful operations
A report for debugging
None of the above
What is the purpose of an Error report file when updating a sequential file?
Error report
Data log
Backup file
Transaction log
What is a Collision in hashing algorithms?
Collision
Overflow
Underflow
Hash table
What is a Cell in a spreadsheet?
Cell
Row
Column
Table
What does a Graph represent in a Network Database Model?
Graph
Tree
List
Array
What is an attribute in a relational database?
An attribute
A relation
A key
A table
What does the Insert operator do in a database?
Insert
Update
Delete
Select
What is Normalization in database design?
Normalization
Denormalization
Indexing
Partitioning
What is Masquerading in data security?
Masquerading
Phishing
Spoofing
Hacking
What is Encryption?
Encryption
Decryption
Encoding
Hashing
What is a Social contract?
Social contract
Legal contract
Business contract
Employment contract
What is a White Hat Hacker?
White Hat Hacker
Black Hat Hacker
Gray Hat Hacker
Script Kiddie
What is a Key stream in Stream Cipher?
Key stream
Cipher text
Plain text
Block cipher
What type of cryptography does RSA use?
Asymmetric-key
Symmetric-key
Hashing
Digital signature
