wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 97

Worksheet time: 49mins

Name
Class
Date
1.

The name of a linked list is the name of the head pointer that points to the ____ of the list

a)

First node

b)

Second node

c)

Null node

d)

Last node

2.

The pop operation ____ of the stack

a)

Deletes an item from the top

b)

Deletes an item from the bottom

c)

Inserts an item at the top

d)

Inserts an item at the bottom

3.

In preorder traversal of a binary tree, the ____.

a)

Left subtree is processed first

b)

Right subtree is processed first

c)

Root is processed first

d)

The root is never processed

4.

The enqueue operation ____ an item at the ____ of the queue

a)

Delete front

b)

Delete/end

c)

Inserts/front

d)

Insert/rear

5.

A ____ is a collection of data stored in the internal format of the computer This contains data that is meaningful only its properly interpreted by a program.

a)

Text file

b)

Binary file

c)

Sequential file

d)

EOF

6.

In the ____ hashing method, there are no synonyms or collisions

a)

Direct

b)

Division remainder

c)

Modulo division

d)

Digit extraction

7.

A ____ is a collection of related logically coherent data used by the application programs in an organization

a)

Database

b)

File

c)

Directory

d)

Flat-file

8.

In the relational database model, data is organized in ____ called relations

a)

Two-dimensional array

b)

Two-dimensional tables

c)

Two-dimensional record

d)

None of others

9.

Each row in a relation is called ____

a)

An attribute

b)

A tuple

c)

A union

d)

An attitude

10.

If you want to change the value of an attribute of a tuple you use the ____ operation

a)

Project

b)

Join

c)

Update

d)

Select

11.

____ 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

12.

Which of the following attacks is threatening confidentiality?

a)

Snooping

b)

Repudiation

c)

Denial of service

d)

Modification

13.

____ means concealing the message by covering it with something else

a)

Cryptography

b)

Steganography

c)

Compressing

d)

Authentication

14.

____ is an attack that reduce the capability of a computer system to function correctly or bring the system down altogether by exhausting its resources

a)

DoS

b)

Trojan horses

c)

Worms

d)

Viruses

15.

____ is the amateur Usually their techniques are deployed out of il motives such as revenge attacks

a)

Black Hat Hacker

b)

Grey Hat Hacker

c)

Red Hat Hacker

d)

Blue Hat Hacker

16.

In a block cipher a ____ is used to encrypt the whole block even if the key is made of multiple values

a)

Key block

b)

Single key

c)

Key stream

d)

Auto key

17.

The RSA algorithm for confidentiality uses ____ cryptography

a)

Asymmetric-key

b)

Symmetric-key

c)

Substitution

d)

Transposition

18.

____ separated the programming task from computer operation tasks

a)

Algorithms

b)

Data processors

c)

High-level programming languages

d)

Operating systems

19.

A 17th-century computing machine that could perform addition and subtraction was the ____.

a)

Pascaline

b)

Jacquard loom

c)

Analytical Engine

d)

Babbage machine

20.

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 others

21.

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

22.

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

23.

IBM-PC is an example of ____.

a)

A main frame

b)

Machine-in-built

c)

Micro computer

d)

Special purpose

e)

None of the others

24.

Instructions and memory addresses are represented by ____

a)

Character codes

b)

Binary codes

c)

Binary word

d)

Parity bit

e)

None of the others

25.

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

a)

Instruction

b)

Series of Is and Os

c)

Boolean algebra

d)

Logic theorems

e)

None of the others

26.

A group contains ____ 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

27.

Conversion of binary number 1010101000010111 to hexadecimal number is ____

a)

D8F9

b)

A8B9

c)

AA17

d)

D9F8

e)

None of the others

28.

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

29.

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

30.

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

31.

Which physical topology uses a hub or switch?

a)

Bus

b)

Ring

c)

Star

d)

Bus and ring

32.

The TCP/IP model has ____ layers

a)

Five

b)

Six

c)

Seven

d)

Eight

33.

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

34.

____ 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

35.

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

36.

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

37.

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

38.

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

a)

Hold state

b)

Ready state

c)

Running state

d)

Waiting state

39.

____ 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

40.

____ is a process in which an algorithm calls itself

a)

Insertion

b)

Searching

c)

Recursion

d)

Iteration

41.

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

a)

Programming language

b)

Source program

c)

Translation

d)

Interpretation

42.

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

43.

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

44.

____ are names for memory locations.

a)

Variables

b)

Imperative language

c)

Identifiers

d)

Data type

45.

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

46.

Between modules in a software system must be maximized.

a)

Coupling

b)

Cohesion

c)

Neither coupling nor cohesion

d)

Both coupling and cohesion

47.

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

48.

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

49.

A ____ is a collection of related elements possibly of different types having a single name.

a)

Array

b)

Record

c)

Linked list

d)

Tree

50.

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

51.

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

52.

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

53.

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

54.

The intersection of a column and row in a spreadsheet is called a(n) ____.

a)

Key

b)

Field

c)

Cell

d)

Menu

e)

None of the others

55.

Each column in a relation is called ____.

a)

An attribute

b)

A tuple

c)

A union

d)

An attitude

56.

Which of the following attacks is threatening integrity?

a)

Masquerading

b)

Traffic Analysis

c)

Denial of service

d)

Encoding

57.

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

58.

____ 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

59.

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

60.

The complete picture of data stored in database is known as ____.

a)

Schema

b)

System flowchart

c)

DBMS

d)

None of the others

61.

The base of the hexadecimal number system is ____.

a)

2

b)

8

c)

10

d)

16

62.

In a ____ a character (or a symbol) in the plaintext is always changed to the same character the ciphertext regardless of its position in the text (Choose 2 answers).

a)

Monoalphabetic cipher

b)

Substitution cipher

c)

Polyalphabetic cipher

d)

Transposition cipher

63.

The first generation of computers available was based on the bits micro processors.

a)

4

b)

8

c)

16

d)

64

e)

None of the others

64.

The ____ manager is responsible for archiving and backup.

a)

Memory

b)

Process

c)

Device

d)

File

65.

A computer has 32 MB (megabytes) of memory. How many bits are needed to address any memory?

a)

5 bits

b)

20 bits

c)

25 bits

d)

32 bits

66.

____ supervises the activity of each component in a computer system.

a)

An operating system

b)

Hardware

c)

A queue

d)

An application program

67.

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

68.

Two integers A and B are stored in two's complement format. Show how B is subtracted from A.

a)

A add one's complement B

b)

A add two's complement B

c)

A subtract one's complement B

d)

A subtract two's complement B

e)

None of others

69.

____ is a protocol for file transfer.

a)

FTP

b)

SMTP

c)

TELNET

d)

HTTP

70.

The maximum value of an octal integer with K=2 digits is Nmax = ____?

a)

63

b)

64

c)

65

d)

66

e)

None of the others

71.

The ____ construct handles repeated actions.

a)

Sequence

b)

Decision

c)

Repetition

d)

Flow

72.

The attack that reduces the capability of a computer is called a ____ attack.

a)

Penetration

b)

Denial of service

c)

Either a or b

d)

Neither a nor b

73.

What is a program of UNIX that accepts requests from users (processes) and interprets the operating system?

a)

Software

b)

Function

c)

SHELL

d)

Feature

74.

Where does a computer add and compare data?

a)

Hard disk

b)

Floppy disk

c)

CPU chip

d)

Memory chip

75.

In the hierarchical database model, data is organized as an inverted ____.

a)

Graph

b)

Tree

c)

Array

d)

Record

76.

Pascal is a(n) ____ language.

a)

Procedural

b)

Functional

c)

Declarative

d)

Object-oriented

77.

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

a)

00011001

b)

00110010

c)

10011001

d)

10110010

78.

In the ____ graphic method of representing an image in a computer, each pixel is assign.

a)

Bitmap

b)

Vector

c)

Quantized

d)

Binary

79.

What is quality referring to the ability to move data and/or a system from one platform to another?

a)

Flexibility

b)

Interoperability

c)

Reusability

d)

Changeability

80.

Which of the following is not a type of Artificial Intelligence agent?

a)

Learning AI agent

b)

Unity-based AI agent

c)

Goal-based AI agent

d)

Simple reflex AI agent

81.

A ____ is a nonactive set of instructions stored on disk (or tape). It may or may not become a ____.

a)

Program

b)

Job

c)

Process

d)

Task

82.

When converting a decimal fraction to base b, we repeatedly ____ b.

a)

Divide by

b)

Multiply by

c)

Add to

d)

Subtract from

83.

A modern electronic computer is a machine that is meant for ____.6

a)

Doing quick mathematical calculations7

b)

Input storage, manipulation of outputting of data8

c)

Electronic data processing9

d)

Performing repetitive tasks accurately10

e)

None of the o11thers

84.

In an inorder traversal of a binary tree, the root is processed ____.

a)

First

b)

Second

c)

Last

d)

Two times

85.

Which of following represents a set of data items that share a specific relationship?

a)

ADT

b)

Data structure

c)

Programming language

d)

Data element

86.

We can convert a number in any system to decimal. We multiply each digit with its ____ and add the result to get the number in the decimal system.

a)

None of others

b)

Values

c)

Numbers

d)

Place value

87.

The first widely-used commercial form of Artificial Intelligence (AI) is being used in many popular microwave ovens, automobiles and plug in circuit boards for desktop PCs. It allows machine information with a deftness that mimics human intuition. What is the name of this Artificial Int?12

a)

Boolean logic13

b)

Human logic14

c)

Fuzzy logic15

d)

Functional logic16

88.

The ____ acts as a liaison between a client program and a server program, a process-to-pro.

a)

Physical

b)

Data-link

c)

Network

d)

Transport

89.

In the object-oriented paradigm, as in nature ____ is an object that can inherit from another ot.

a)

Method

b)

Inheritance

c)

Polymorphism

d)

Classes

90.

A ____ is a file of characters. It cannot contain integers floating-point numbers or any other their internal memory format.

a)

Text file

b)

Binary file

c)

Sequential file

d)

EOF

91.

The devices in Bluetooth LAN, sometimes called gadgets, find each other and make a network called ____.

a)

ESS

b)

Ad hoc

c)

BSS

d)

A piconet

92.

Research scientists all over the world are taking steps towards building computers with circuits patterned after the complex inter connections existing among the human brain's nerve cells. What name is given to such type of computers?

a)

Intelligent computers

b)

Supercomputers

c)

Smart computers

d)

Neural network computers

e)

None of the above

93.

What is statement that stores the value in the variable, which has already been created in th section. We use the symbol in our algorithm to define it?

a)

Compound statement

b)

Assignment statement

c)

Control statement

d)

None of above

94.

Conversion of binary number 1010101000010111 to hexadecimal number is ____.

a)

D8F9

b)

A8B9

c)

AA17

d)

D9F8

e)

None of the others

95.

A ____ is the event that occurs when a hashing algorithm produces an address for an insert address is already occupied.

a)

Open addressing

b)

Every possibile key

c)

Digit extraction key

d)

Collision

96.

If a graph is directed, the relations between edges and arcs are ____.

a)

One-way

b)

Two-way

c)

No-way

d)

Any - way

97.

In ____ paradigm, the service provider is an application program, it runs continuously, waiting application program, then to make a connection through the Internet and ask for service.

a)

P2P

b)

Tranditional

c)

Client-server

d)

Model