wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 119

Worksheet time: 1hrs 17mins

Name
Class
Date
1.

………..separated the programming task from computer operation tasks.

a)

Algorithms

b)

Data processors

c)

High-level programming languages

d)

Operating systems

2.

THE(A) 17th-century computing machine that could perform addition and subtraction was the……

a)

Pascaline

b)

Jacquard loom

c)

Analytical Engine

d)

Babbage machine

3.

After the instruction is decoded, the control unit sends the task order to a component in the CPU. What is this phase?

a)

Fetch phase

b)

Decode phase

c)

Execute phase

d)

None of the others

4.

RAM is used as a short memory because it is

a)

Volatile

b)

Has small capacity

c)

Is very expensive

d)

Is programmable

e)

None of the others

5.

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……

a)

Next block

b)

Data

c)

Next tape information

d)

Error detection

6.

IBM-PC is an example of

a)

A mainframe

b)

Machine-in-built

c)

Microcomputer

d)

Special purpose

e)

None of the others

7.

Instructions and memory addresses are represented by

a)

Character codes

b)

Binary codes

c)

Binary word

d)

Parity bit

e)

None of the others

8.

Computers are extremely fast and have fantastic memories. However, the only thing they can remember is

a)

Instruction

b)

Series of 1s and 0s

c)

Boolean algebra

d)

Logic theorems

e)

None of the others

9.

Which of the following is equivalent to 12 in decimal?

a)

(1110)2

b)

(C)16

c)

(15)8

d)

None of the others

10.

A group containing…… bits in the binary system are represented as one digit in the octal system.

a)

1

b)

2

c)

3

d)

4

e)

None of the others

11.

Conversion of binary number 1010101000010111 to hexadecimal number is….

a)

D8F9

b)

A8B9

c)

AA17

d)

D9F8

e)

None of the others

12.

What is the result of storing -25 in an 8-bit memory location using two's complement representation?

a)

00011001

b)

00110010

c)

11100111

d)

11110010

13.

The ASCII code for the character J is:

a)

1001 0001

b)

1001 1010

c)

0100 1010

d)

1010 0001

e)

None of the others

14.

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)?

a)

B × 2S

b)

2B × S

c)

B × S

d)

B² × S²

15.

In the….. graphic method of representing an image in a computer, re-scaling of the image creates a ragged or grainy image.

a)

Bitmap

b)

Vector

c)

Quantized

d)

Binary

16.

In the….. graphic method of representing an image in a computer, re-scaling of the image creates a ragged or grainy image.

a)

Bitmap

b)

Vector

c)

Quantized

d)

Binary

17.

Use an arithmetic right shift operation on the bit pattern 1001 1000

a)

0100 1100

b)

1100 1100

c)

1101 1001

d)

1001 1000

18.

Use a simple left shift operation on the bit pattern 1001 1000

a)

0001 1001

b)

0001 1010

c)

0011 0000

d)

0011 0001

19.

Which physical topology uses a hub or switch?

a)

Bus

b)

Ring

c)

Star

d)

Bus and ring

20.

The TCP/IP model has ….layers.

a)

Five

b)

Six

c)

Seven

d)

Eight

21.

The format of an IPv6 address is referred to as……

a)

Dotted-hexadecimal notation

b)

Dotted-octal notation

c)

Dotted-decimal notation

d)

8- Hexadecimal digits

22.

…..explicitly defines connection establishment, data transfer, connection teardown phases to provide a connection-oriented service AND reliable protocol.

a)

TCP

b)

UDP

c)

IP

d)

HTTP

23.

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.

a)

WWW

b)

Centralized network

c)

Hybrid network

d)

Decentralized network

24.

THE(A) memory that does not change its contents without external causes is known as

a)

Dynamic memory

b)

Static memory

c)

RAM

d)

EEPROM

e)

None of the others

25.

Which of the following is the user-programmed semiconductor memory?

a)

SRAM

b)

DRAM

c)

EPROM

d)

All of the others

e)

None of the others

26.

Which of the following holds data and processing instructions temporarily until the CPU needs it?

a)

ROM

b)

Control unit

c)

Main memory

d)

Coprocessor chips

e)

None of the others

27.

THE(A) …. is a program in execution. It is a program that has started but has not finished.

a)

Program

b)

Job

c)

Process

d)

Task

28.

What kind of state does a process execute until it needs I/O resources when I/O is complete?

a)

Hold state

b)

Ready state

c)

Running state

d)

Waiting state

29.

……is a step-by-step method for solving a problem or doing a task.

a)

A construct

b)

A recursion

c)

An iteration

d)

An algorithm

30.

…….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.

a)

Pseudocode

b)

Unified Modeling Language (UML)

c)

Flowchart

d)

State diagram

31.

------is a process in which an algorithm calls itself.

a)

Insertion

b)

Searching

c)

Recursion

d)

Iteration

32.

In….. unsorted list.sort, the smallest item from the unsorted list is swapped with the item at the beginning of the list.

a)

Selection

b)

Bubble

c)

Insertion

d)

Every

33.

The program in a high-level language is called the…..

a)

Programming language

b)

Source program

c)

Translation

d)

Interpretation

34.

The code that should be adequate for present and anticipated data processing both for machine and human use is

a)

Conciseness

b)

Uniqueness

c)

Operability

d)

All of the others

e)

None of the others

35.

In the --- we can think of a program as an active agent that manipulates passive objects.

a)

Procedural paradigm

b)

Functional paradigm

c)

Declarative paradigm

d)

Object-oriented paradigm

36.

----are names for memory locations.

a)

Variables

b)

Imperative language

c)

Identifiers

d)

Data type

37.

THE(A) ……gives the user's view of a system: it shows how the user communicates with the system.

a)

Class diagram

b)

State diagram

c)

Use-case diagram

d)

Sequence diagram

38.

One phase in system development is……

a)

Analysis

b)

Application

c)

Designing

d)

Collecting

39.

……between modules in a software system must be maximized.

a)

Coupling

b)

Cohesion

c)

Neither coupling nor cohesion

d)

Both coupling and cohesion

40.

What is quality referring to the ability to move software from one hardware platform to another?

a)

Flexibility

b)

Interoperability

c)

Reusability

d)

Changeability

41.

Testing a software system can involve….. testing.

a)

Black-box

b)

Glass-box

c)

Neither black-box nor glass-box

d)

Both black-box and glass-box

42.

THE(A) data structure can be …..

a)

Only an array

b)

Only a record

c)

Only a linked list

d)

An array, a record, or a linked list

43.

THE(A) …..is a collection of related elements possibly of different types having a single name.

a)

Array

b)

Record

c)

Linked list

d)

Tree

44.

Given a linked list called children, the pointer variable children identifies……. element of the linked list.

a)

The first

b)

The second

c)

The last

d)

Any

45.

Inside the ADT are two different parts of the model that are…… and….

a)

Data structure and operations

b)

Application program and public operations

c)

Application program and private oper

46.

Inside the ADT are two different parts of the model that are…… and….

a)

Data structure and operations

b)

Application program and public operations

c)

Application program and private operations

d)

Data structure and application program

47.

The-- of each node includes one of its children and all descendants of that child.

a)

Left tree

b)

Binary tree

c)

Subtree

d)

Right tree

48.

The enqueue operation….. an item at the……. of the queue.

a)

Delete/front

b)

Delete/end

c)

Inserts/front

d)

Insert/rear

49.

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.

a)

Text file

b)

Binary file

c)

Sequential file

d)

EOF

50.

When a sequential file is updated, the ….file contains a list of all errors occurring during the update process.

a)

New master

b)

Old master

c)

Transaction

d)

Error report

51.

When a hashing algorithm produces an address for an insertion key and that address is already occupied, it is called a……

a)

Collision

b)

Probe

c)

Synonym

d)

Linked list

52.

The intersection of a column and row in a spreadsheet is called a… or

a)

Key

b)

Field

c)

Cell

d)

Menu

e)

None of the others

53.

In the network database model, the entities are organized in a….. through several paths in which some entities can be accessed.

a)

Graph

b)

Tree

c)

Array

d)

Record

54.

Each column in a relation is called…..

a)

An attribute

b)

A tuple

c)

A union

d)

An attitude

55.

The unary……operation always results in a relation that has exactly one more row than the original relation.

a)

Insert

b)

Delete

c)

Update

d)

Select

56.

……is the process by which a given set of relations are transformed to a new set of relations with a more solid structure.

a)

Relational database

b)

Database system

c)

Atomic operations

d)

Normalization

57.

Which of the following attacks is threatening integrity?

a)

Masquerading

b)

Traffic Analysis

c)

Denial of service

d)

Encoding

58.

Before transmission, the sender transforms the plaintext into the ciphertext-this is….

a)

Plain text

b)

Cipher text

c)

Encryption

d)

Decryption

59.

The ethical principle that dictates that an act is ethical when a majority of people in society agrees with it is referred to as….

a)

Moral rules

b)

Utilization

c)

Social contract

d)

None of the others

60.

……who create algorithms to break existing internet networks so as to solve the loopholes in them

4 lines
61.

……who create algorithms to break existing internet networks so as to solve the loopholes in them.

a)

Black Hat Hacker

b)

Grey Hat Hacker

c)

White Hat Hacker

d)

Blue Hat Hacker

62.

In a stream cipher encryption and decryption are done one symbol. We have a plaintext stream, a ciphertext stream, and a …..

a)

Key block

b)

Single key

c)

Key stream

d)

Auto key

63.

The RSA algorithm for confidentiality uses….. cryptography.

a)

Asymmetric-key

b)

Symmetric-key

c)

Substitution

d)

Transposition

64.

What is the binary representation of instructions?

4 lines
65.

What is the hexadecimal representation of the decimal number 12?

a)

A

b)

B

c)

C

66.

How many bits are used to represent each digit in octal?

a)

1 bit

b)

2 bits

c)

3 bits

67.

What is the hexadecimal representation of the binary number 1010101000010111?

(a)  

68.

What is the two's complement representation of -25 in 8 bits?

(a)  

69.

What is the ASCII representation of the letter J?

(a)  

70.

What is the formula for bit rate?

(a)  

71.

What type of image has a fixed resolution and pixelation when zoomed?

(a)  

72.

What is the result of an arithmetic right shift?

4 lines
73.

What happens when you perform a left shift?

4 lines
74.

What type of network uses a hub or switch as the center?

(a)  

75.

How many layers are there in the TCP/IP model?

(a)  

76.

How many hexadecimal groups are in an IPv6 address?

4 lines
77.

What does TCP stand for?

4 lines
78.

What is a hybrid network?

4 lines
79.

What is a Hybrid Network?

a)

Client-Server model

b)

P2P model

c)

Combination of Client-Server and P2P

d)

None of the above

80.

What is Static Memory?

a)

Memory that changes content

b)

Memory that does not change content without external influence

c)

Memory that requires constant refreshing

d)

None of the above

81.

What is EPROM?

a)

A type of volatile memory

b)

A type of non-volatile memory that can be programmed and erased

c)

A type of memory that cannot be programmed

d)

None of the above

82.

What is Main Memory?

a)

Memory that holds data temporarily for CPU processing

b)

Permanent storage memory

c)

Memory that does not require refreshing

d)

None of the above

83.

What is a Process?

a)

A program in execution

b)

A type of memory

c)

A storage device

d)

None of the above

84.

What is a Waiting State?

a)

A state when a process is executing

b)

A state when a process is waiting for I/O resources

c)

A state when a process is terminated

d)

None of the above

85.

What is an Algorithm?

a)

A random set of instructions

b)

A step-by-step method to solve a problem

c)

A type of data structure

d)

None of the above

86.

What is a Flowchart?

a)

A visual representation of an algorithm

b)

A type of programming language

c)

A data storage method

d)

None of the above

87.

What is Recursion?

a)

A method where a function calls itself

b)

A type of loop

c)

A data structure

d)

None of the above

88.

What is Selection Sort?

a)

An algorithm that finds the smallest element and swaps it with the first element

b)

A type of search algorithm

c)

A sorting method that does not require comparisons

d)

None of the above

89.

What is a Source Program?

a)

Code written in high-level programming language

b)

Machine code

c)

A type of database

d)

None of the above

90.

What is Operability?

a)

Ensuring code works well on machines and is understandable by humans

b)

A type of software

c)

A programming paradigm

d)

None of the above

91.

What is Object-oriented paradigm?

a)

A programming style that treats programs as agents manipulating objects

b)

A type of data structure

c)

A method of sorting data

d)

None of the above

92.

What is a Variable?

a)

A name used to store data in memory

b)

A type of function

c)

A method of sorting

d)

None of the above

93.

What is the name used to store data in memory?

a)

Variable

b)

Use-case diagram

c)

Analysis

d)

Cohesion

94.

What does a Use-case diagram represent?

a)

User's view of a system

b)

Data structure

c)

Algorithm

d)

Module

95.

What is the first step in system development?

a)

Analysis

b)

Design

c)

Implementation

d)

Testing

96.

What should be maximized within a module?

a)

Cohesion

b)

Coupling

c)

Complexity

d)

Size

97.

What does Interoperability allow software to do?

a)

Switch between different hardware platforms

b)

Store data

c)

Execute algorithms

d)

Visualize data

98.

What types of testing are included in both black-box and glass-box testing?

a)

Both black-box and glass-box testing

b)

Only black-box testing

c)

Only glass-box testing

d)

Unit testing

99.

What can a data structure be?

a)

An array, a record, or a linked list

b)

Only an array

c)

Only a record

d)

Only a linked list

100.

What is a Record?

a)

A collection of elements of different types with the same name

b)

A single data type

c)

A type of algorithm

d)

A data structure

101.

What does the pointer of a linked list usually point to?

a)

The first element

b)

The last element

c)

A random element

d)

Null

102.

What does an Abstract Data Type (ADT) consist of?

a)

Data structure and operations

b)

Only data structure

c)

Only operations

d)

None of the above

103.

What does a Subtree of a node include?

a)

One of its children and all descendants of that child

b)

Only the node itself

c)

All nodes in the tree

d)

None of the above

104.

What is the principle of a Queue?

a)

FIFO, insert at rear and remove from front

b)

LIFO, insert at front and remove from rear

c)

Random access

d)

None of the above

105.

What is a Binary file?

a)

Stores data in binary format

b)

Stores data in text format

c)

Stores data in JSON format

d)

None of the above

106.

What is an Error report?

a)

A report generated when updating a sequential file

b)

A report generated for successful operations

c)

A report for debugging

d)

None of the above

107.

What is the purpose of an Error report file when updating a sequential file?

a)

Error report

b)

Data log

c)

Backup file

d)

Transaction log

108.

What is a Collision in hashing algorithms?

a)

Collision

b)

Overflow

c)

Underflow

d)

Hash table

109.

What is a Cell in a spreadsheet?

a)

Cell

b)

Row

c)

Column

d)

Table

110.

What does a Graph represent in a Network Database Model?

a)

Graph

b)

Tree

c)

List

d)

Array

111.

What is an attribute in a relational database?

a)

An attribute

b)

A relation

c)

A key

d)

A table

112.

What does the Insert operator do in a database?

a)

Insert

b)

Update

c)

Delete

d)

Select

113.

What is Normalization in database design?

a)

Normalization

b)

Denormalization

c)

Indexing

d)

Partitioning

114.

What is Masquerading in data security?

a)

Masquerading

b)

Phishing

c)

Spoofing

d)

Hacking

115.

What is Encryption?

a)

Encryption

b)

Decryption

c)

Encoding

d)

Hashing

116.

What is a Social contract?

a)

Social contract

b)

Legal contract

c)

Business contract

d)

Employment contract

117.

What is a White Hat Hacker?

a)

White Hat Hacker

b)

Black Hat Hacker

c)

Gray Hat Hacker

d)

Script Kiddie

118.

What is a Key stream in Stream Cipher?

a)

Key stream

b)

Cipher text

c)

Plain text

d)

Block cipher

119.

What type of cryptography does RSA use?

a)

Asymmetric-key

b)

Symmetric-key

c)

Hashing

d)

Digital signature