wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSI104

Total questions: 258

Worksheet time: 2hrs 9mins

Name
Class
Date
1.

The _______ model is the basis for today's computers.

a)

a. Leibnitz

b)

b. von Neumann

c)

c. Pascal

d)

d. Charles Babbage

2.

In a computer, the _______ subsystem stores data and programs.

a)

a. ALU

b)

b. input/output

c)

c. memory

d)

d. control unit

3.

In a computer, the _______ subsystem performs calculations and logical opera-tions.

a)

a. ALU

b)

b. input/output

c)

c. memory

d)

d. control unit

4.

In a computer, the _______ subsystem accepts data and programs and sends pro-cessing results to output devices.

a)

a. ALU

b)

b. input/output

c)

c. memory

d)

d. control unit

5.

In a computer, the _______ subsystem serves as a manager of the other subsys-tems.

a)

a. ALU

b)

b. input/output

c)

c. memory

d)

d. control unit

6.

According to the von Neumann model, _______ are stored in memory.

a)

a. only data

b)

b. only programs

c)

c. data and programs

d)

d. neither data nor programs

7.

A step-by-step solution to a problem is called _______.

a)

a. hardware

b)

b. an operating system

c)

c. a computer language

d)

d. an algorithm

8.

FORTRAN and COBOL are examples of _______.

a)

a. hardware

b)

b. operating systems

c)

c. computer languages

d)

d. algorithms

9.

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

a)

a. Pascaline

b)

b. Jacquard loom

c)

c. Analytical Engine

d)

d. Babbage machine

10.

_______ is a set of instructions in a computer language that tells the computer what to do with data.

a)

a. An operating system

b)

b. An algorithm

c)

c. A data processor

d)

d. A program

11.

_______ is the design and writing of a program in structured form.

a)

a. Software engineering

b)

b. Hardware engineering

c)

c. Algorithm development

d)

d. Instructional architecture

12.

The first electronic special-purpose computer was called _______.

a)

a. Pascal

b)

b. Pascaline

c)

c. ABC

d)

d. ENIAC

13.

One of the first computers based on the von Neumann model was called _______.

a)

a. Pascal

b)

b. Pascaline

c)

c. ABC

d)

d. EDVAC

14.

The first computing machine to use the idea of storage and programming was called _______.

a)

a. the Madeline

b)

b. EDVAC

c)

c. the Babbage machine

d)

d. the Jacquard loom

15.

_______ separated the programming task from computer operation tasks.

a)

a. Algorithms

b)

b. Data processors

c)

c. High-level programming languages

d)

d. Operating systems

16.

When converting a decimal integer to base b, we repeatedly _____ b.

a)

a) divide

b)

b) multiply

c)

c) add to

d)

d) subtract from

17.

When converting a binary fraction to decimal, we repeatedly ____.

a)

a) divide

b)

b) multiply

c)

c) add to

d)

d) subtract from

18.

Which of the following representations is erroneous?

a)

a) (10111)2

b)

b) (349)8

c)

c) (3AB)16

d)

d) 256

19.

Which of the following representations is erroneous?

a)

a) (10211)2

b)

b) (342)8

c)

c) (EEE)16

d)

d) 145

20.

Which of the following representations is erroneous?

a)

a) (111)2

b)

b) (346)8

c)

c) (EEG)16

d)

d) 221

21.

Which of the following representations is erroneous?

a)

a) (110)2

b)

b) (141)8

c)

c) (EF)16

d)

d) 22A

22.

Which of the following is equivalent to 12 in decimal?

a)

a) (1110)2

b)

b) (C)16

c)

c) (15)8

d)

d) None of the others

23.

Which of the following is equivalent to 24 in decimal?

a)

a) (11000)2

b)

b) (1A)16

c)

c) (31)8

d)

d) None of the others

24.

Convert the binary number 1001 to decimal. The answer is:

a)

a) 7

b)

b) 9

c)

c) 11

d)

d) 15

25.

Convert the binary number 101010 to hexadecimal:

a)

a) 1A

b)

b) 1B

c)

c) 2A

d)

d) 2B

26.

Convert the hexadecimal number 1B to decimal:

a)

a) 21

b)

b) 23

c)

c) 27

d)

d) 29

27.

A byte consists of _______ bits.

a)

a. 2

b)

b. 4

c)

c. 8

d)

d. 16

28.

In a set of 64 symbols, each symbol requires a bit pattern length of _______ bits.

a)

a. 4

b)

b. 5

c)

c. 6

d)

d. 7

29.

How many symbols can be represented by a bit pattern with ten bits?

a)

a. 128

b)

b. 256

c)

c. 512

d)

d. 1024

30.

If the ASCII code for E is 1000101, then the ASCII code for e is _______. An-swer the question without consulting the ASCII table.

a)

a. 1000110

b)

b. 1000111

c)

c. 0000110

d)

d. 1100101

31.

A 32-bit code called _______ represents symbols in all languages.

a)

a. ANSI

b)

b. Unicode

c)

c. EBCDIC

d)

d. Extended ASCII

32.

An image can be represented in a computer using the _______ method.

a)

a. bitmap graphic

b)

b. vector graphic

c)

c. only

d)

d. either bitmap or vector graphic

33.

In the _______ graphic method of representing an image in a computer, each pixel is assigned a bit patterns.

a)

a. bitmap

b)

b. vector

c)

c. quantized

d)

d. binary

34.

In the _______ graphic method of representing an image in a computer, the image is decomposed into a combination of geometrical figures.

a)

a. bitmap

b)

b. vector

c)

c. quantized

d)

d. binary

35.

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

a)

a. bitmap

b)

b. vector

c)

c. quantized

d)

d. binary

36.

Assume a new Excess system uses 17 bits to represent the exponent section. What is he bias value in this system?

a)

a. 17

b)

b. 16

c)

c. 65535

d)

d. 65536

37.

Which number representation method is often used to store the exponential value of a fractional part?

a)

a. unsigned integers

b)

b. two's complement

c)

c. Excess

d)

d. ten's complement

38.

In an Excess conversion, we _______ the number to be converted.

a)

a. add the bias number to

b)

b. the bias number from

c)

c. multiply the bias number by

d)

d. divide

39.

When a fractional part is normalized, the computer stores the _______.

a)

a. only the sign

b)

b. only the exponent

c)

c. only the mantissa

d)

d. the sign, exponent, and mantissa

40.

The precision of the fractional part of a number stored in a computer is defined by the _______.

a)

a. sign

b)

b. exponent

c)

c. mantissa

d)

d. last digit

41.

The combination of sign and mantissa of a real number in IEEE standard float-ing point format is stored as an integer in the ____________ representation.

a)

a. unsigned

b)

b. sign-and-magnitude

c)

c. two's complement

d)

d. one's complement

42.

______ is an arithmetic operation.

a)

a. The exclusive OR

b)

b. The unary NOT

c)

c. Subtraction

d)

d. The binary AND

43.

_______ is a logical bit operator.

a)

a. The exclusive OR

b)

b. The unary NOT

c)

c. The binary AND

d)

d. exclusive OR, unary NOT, or binary AND

44.

The _______ method of integer representation is the most common method for storing integers in computer memory.

a)

a. sign-and-magnitude

b)

b. one's complement

c)

c. two's complement

d)

d. unsigned integers

45.

In two's complement addition, if there is a final carry after the left most column addition, _______.

a)

a. add it to the right most column

b)

b. add it to the left most column

c)

c. discard it

d)

d. increase the bit length

46.

For an 8-bit allocation, the smallest decimal number that can be represented in two's complement form is _______.

a)

a. -8

b)

b. -127

c)

c. -128

d)

d. -256

47.

For an 8-bit allocation, the largest decimal number that can be represented in two's complement form is _______.

a)

a. 8

b)

b. 127

c)

c. 128

d)

d. 256

48.

In two's complement representation with a 4-bit allocation, we get _______ when we add 1 to 7.

a)

a. 8

b)

b. 1

c)

c. -7

d)

d. -8

49.

In two's complement representation with a 4-bit allocation, we get _______ when we add 5 to 5.

a)

a. -5

b)

b. -6

c)

c. -7

d)

d. 10

50.

If the exponent in Excess_127 is binary 10000101, the exponent in decimal is _______.

a)

a. 6

b)

b. 7

c)

c. 8

d)

d. 9

51.

If we are adding two numbers, one of which has an exponent value of 7 and the other an exponent value of 9, we need to shift the decimal point of the smaller number _______.

a)

a. one place to the left

b)

b. one place to the right

c)

c. two places to the left

d)

d. two places to the right

52.

_______ operator (s) takes two inputs to produce one output.

a)

a. Only AND

b)

b. Only OR

c)

c. Only XOR

d)

d. AND, OR, or XOR

53.

The unary _______ operator inverts its single input.

a)

a. AND

b)

b. OR

c)

c. NOT

d)

d. XOR

54.

_______ operator (s), if the input is two 0s, the output is 0.

a)

a. In only AND

b)

b. In only OR

c)

c. In only XOR

d)

d. In AND, OR, or XOR

55.

______ operator (s), if the input is two 1s, the output is 0.

a)

a. In only AND

b)

b. In only OR

c)

c. In only XOR

d)

d. In AND, OR, or XOR

56.

For the binary AND operation, only an input of _______ gives an output of 1.

a)

a. two 0s

b)

b. two 1s

c)

c. one 0 and one 1

d)

d. two 2s

57.

For the binary OR operation, only an input of _______ gives an output of 0.

a)

a. two 0s

b)

b. two 1s

c)

c. one 0 and one 1

d)

d. two 2s

58.

We use a bit pattern called a _______ to modify another bit pattern.

a)

a. mask

b)

b. carry

c)

c. float

d)

d. byte

59.

To flip all the bits of a bit pattern, make a mask of all 1s and then _______ the bit pattern and the mask.

a)

a. AND

b)

b. OR

c)

c. XOR

d)

d. NOT

60.

19. To un-set (force to 0) all the bits of a bit pattern, make a mask of all 0s and then _______ the bit pattern and the mask.

a)

a. AND

b)

b. OR

c)

c. XOR

d)

d. NOT

61.

To set (force to 1) all the bits of a bit pattern, make a mask of all 1s and then _______ the bit pattern and the mask.

a)

a. AND

b)

b. OR

c)

c. XOR

d)

d. NOT

62.

The TCP/IP model has _______ layers.

a)

a. five

b)

b. six

c)

c. seven

d)

d. eight

63.

The _______ layer of the TCP/IP protocol suite provides services for end users.

a)

a. data-link

b)

b. transport

c)

c. application

d)

d. physical

64.

The _______ layer of the TCP/IP protocol suite transmits a bit stream over a physical medium.

a)

a. physical

b)

b. data-link

c)

c. network

d)

d. transport

65.

The _______ layer of the TCP/IP protocol suite is responsible for node-to-node delivery of a frame between two adjacent nodes.

a)

a. transport

b)

b. network

c)

c. data-link

d)

d. session

66.

The _______ layer of the TCP/IP protocol suite is responsible for source-to-destination delivery of the entire message.

a)

a. transport

b)

b. network

c)

c. data-link

d)

d. session

67.

What is the domain name in the e mail address kayla@nasa.gov?

a)

a. kayla

b)

b. kayla@nasa.gov

c)

c. nasa.gov

d)

d. gov

68.

Which physical topology uses a hub or switch?

a)

a. bus

b)

b. ring

c)

c. star

d)

d. bus and ring

69.

IP addresses are currently _______ bits in length.

a)

a. 4

b)

b. 8

c)

c. 32

d)

d. 40

70.

______ protocol (s) is one of the protocols in the transport layer.

a)

a. Only TCP

b)

b. Only UDP

c)

c. Only SCTP

d)

d. TCP, UDP, and SCTP

71.

_______ is a protocol for file transfer.

a)

a. FTP

b)

b. SMTP

c)

c. TELNET

d)

d. HTTP

72.

_______ is a protocol for e mail services.

a)

a. FTP

b)

b. SMTP

c)

c. TELNET

d)

d. HTTP

73.

_______ is a protocol for accessing and transferring documents on the WWW.

a)

a. FTP

b)

b. SMTP

c)

c. TELNET

d)

d. HTTP

74.

Every computer looking to access the Internet would be known as this

a)

a. client

b)

b. desktop

c)

c. hub

d)

d. server

75.

Identifies company or commercial sites

a)

a. .org

b)

b. .com

c)

c. .gov

d)

d. .edu

76.

what is indicated when the domain name has only two letters like .us, .uk, .au, .mx, or .ca

a)

a. invalid domain

b)

b. private domain

c)

c. secure domain

d)

d. country domain

77.

_______ is a program that facilitates the execution of other programs.

a)

a. An operating system

b)

b. Hardware

c)

c. A queue

d)

d. An application program

78.

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

a)

a. An operating system

b)

b. Hardware

c)

c. A queue

d)

d. An application program

79.

Multi-programming requires a _______ operating-system.

a)

a. batch

b)

b. time-sharing

c)

c. parallel

d)

d. distributed

80.

_______ is multi-programming with swapping.

a)

a. Partitioning

b)

b. Paging

c)

c. Demand paging

d)

d. Queuing

81.

_______ is multi-programming without swapping.

a)

a. Partitioning

b)

b. Virtual memory

c)

c. Demand paging

d)

d. Queuing

82.

In _______, only one program can reside in memory for execution.

a)

a. mono-programming

b)

b. multi-programming

c)

c. partitioning

d)

d. paging

83.

_______ is a multi-programming method in which multiple programs are entirely in memory with each program occupying a contiguous space.

a)

a. Partitioning

b)

b. Paging

c)

c. Demand paging

d)

d. Demand segmentation

84.

In paging, a program is divided into equally sized sections called _______.

a)

a. pages

b)

b. frames

c)

c. segments

d)

d. partitions

85.

In _______, the program can be divided into differently sized sections.

a)

a. partitioning

b)

b. paging

c)

c. demand paging

d)

d. demand segmentation

86.

In _______, the program can be divided into equally sized sections called pages, but the pages need not be in memory at the same time for execution.

a)

a. partitioning

b)

b. paging

c)

c. demand paging

d)

d. demand segmentation

87.

A process in the _______ state can go to either the ready, terminated, or waiting states.

a)

a. hold

b)

b. virtual

c)

c. running

d)

d. hold or running

88.

A process in the ready state goes to the running state when _______.

a)

a. it enters memory

b)

b. it requests I/O

c)

c. it gets access to the CPU

d)

d. it finishes running

89.

A program becomes a _______ when it is selected by the operating system and brought to the hold state.

a)

a. job

b)

b. process

c)

c. deadlock

d)

d. partition

90.

Every process is _______.

a)

a. only a job

b)

b. only a program

c)

c. only a partition

d)

d. a job and a program

91.

The _______ scheduler creates a process from a job and changes a process back to a job.

a)

a. job

b)

b. process

c)

c. virtual

d)

d. queue

92.

The _______ scheduler moves a process from one process state to another.

a)

a. job

b)

b. process

c)

c. virtual

d)

d. queue

93.

To prevent _______, an operating system can put resource restrictions on pro-cesses.

a)

a. starvation

b)

b. synchronization

c)

c. paging

d)

d. deadlock

94.

_______ can occur if a process has too many resource restrictions.

a)

a. Starvation

b)

b. Synchronization

c)

c. Paging

d)

d. Deadlock

95.

The _______ manager is responsible for archiving and backup.

a)

a. memory

b)

b. process

c)

c. device

d)

d. file

96.

The _______ manager is responsible for access to I/O devices.

a)

a. memory

b)

b. process

c)

c. device

d)

d. file

97.

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

a)

a. A construct

b)

b. A recursion

c)

c. An iteration

d)

d. An algorithm

98.

There are ______ basic constructs in computer -science.

a)

a. one

b)

b. two

c)

c. three

d)

d. four

99.

The _______construct tests a condition.

a)

a. sequence

b)

b. decision

c)

c. repetition

d)

d. flow

100.

The _______ construct uses a set of actions one after another.

a)

a. sequence

b)

b. decision

c)

c. repetition

d)

d. flow

101.

The _______ construct handles repeated actions.

a)

a. sequence

b)

b. decision

c)

c. repetition

d)

d. flow

102.

_______ is a pictorial representation of an algorithm.

a)

a. A UML diagram

b)

b. A program

c)

c. Pseudocode

d)

d. An algorithm

103.

_______ is an English-language-like representation of code.

a)

a. A UML diagram

b)

b. A program

c)

c. Pseudocode

d)

d. An algorithm

104.

_____ is a basic algorithm that adds a list of numbers.

a)

a. Summation

b)

b. Product

c)

c. Smallest

d)

d. Largest

105.

_______ is a basic algorithm that multiplies a list of numbers.

a)

a. Summation

b)

b. Product

c)

c. Smallest

d)

d. Largest

106.

_______ is a basic algorithm that arranges data according to its value.

a)

a. Inquiry

b)

b. Sorting

c)

c. Searching

d)

d. Recursion

107.

The items are divided into two lists (sorted and unsorted) _____ sort.

a)

a. only in a selection

b)

b. only in a bubble

c)

c. only in an insertion

d)

d. in selection, bubble, or insertion

108.

In _______ sort, the item that goes into the sorted list is always the first item in the unsorted list.

a)

a. selection

b)

b. bubble

c)

c. insertion

d)

d. every

109.

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

a)

a. selection

b)

b. bubble

c)

c. insertion

d)

d. every

110.

In ______ sort, the smallest item moves to the beginning of the unsorted list. There is no one-to-one swapping.

a)

a. selection

b)

b. bubble

c)

c. insertion

d)

d. every

111.

_______ is a basic algorithm in which we want to find the location of a target in a list of items.

a)

a. Sorting

b)

b. Searching

c)

c. Product

d)

d. Summation

112.

We use a _______ search for an unordered list.

a)

a. sequential

b)

b. binary

c)

c. bubble

d)

d. insertion

113.

We use a _______ search for an ordered list.

a)

a. sequential

b)

b. binary

c)

c. bubble

d)

d. insertion

114.

_______ is a process in which an algorithm calls itself.

a)

a. Insertion

b)

b. Searching

c)

c. Recursion

d)

d. Iteration

115.

What is a linear search?

a)

a. A sequential method for sorting elements within a list.

b)

b. A sequential method for sorting and finding an element within a list.

c)

c. A sequential method for finding an element within a list.

d)

d. A sequential method that reduces the size of a list.

116.

How many checks will a linear search take to find number 6 in the list?

3, 4, 7, 6, 5, 1

a)

a. 3

b)

b. 7

c)

c. 5

d)

d. 4

117.

FORTRAN is a(n) _______ language.

a)

a. procedural

b)

b. functional

c)

c. declarative

d)

d. object-oriented

118.

Pascal is a(n) _______ language.

a)

a. procedural

b)

b. functional

c)

c. declarative

d)

d. object-oriented

119.

Java is a(n) _______ language.

a)

a. procedural

b)

b. functional

c)

c. declarative

d)

d. object-oriented

120.

LISP is a(n) _______ language.

a)

a. procedural

b)

b. functional

c)

c. declarative

d)

d. object-oriented

121.

_______ is a common language in the business -environment.

a)

a. FORTRAN

b)

b. C++

c)

c. C

d)

d. COBOL

122.

_______ is a popular object-oriented language.

a)

a. FORTRAN

b)

b. COBOL

c)

c. Java

d)

d. LISP

123.

A _______ program can be either an application or an applet.

a)

a. FORTRAN

b)

b. C++

c)

c. C

d)

d. Java

124.

LISP and Scheme are both _______ languages.

a)

a. procedural

b)

b. functional

c)

c. declarative

d)

d. object-oriented

125.

One phase in system development is _______.

a)

a. analysis

b)

b. application

c)

c. designing

d)

d. collecting

126.

Defining the users, requirements, and methods is part of the _______ phase.

a)

a. analysis

b)

b. design

c)

c. implementation

d)

d. testing

127.

In the system development process, writing the program is part of the _______ phase.

a)

a. analysis

b)

b. design

c)

c. implementation

d)

d. testing

128.

In the system development process, structure charts are tools used in the _______ phase.

a)

a. analysis

b)

b. design

c)

c. implementation

d)

d. testing

129.

Testing a software system can involve _______ testing.

a)

a. black-box

b)

b. glass-box

c)

c. neither black-box nor glass-box

d)

both black-box and glass-box

130.

_______ is the breaking up of a large project into smaller parts.

a)

a. Coupling

b)

b. Incrementing

c)

c. Obsolescence

d)

d. Modularization

131.

_______ is a measure of how tightly two modules are bound to each other.

a)

a. Modularity

b)

b. Coupling

c)

c. Interoperability

d)

d. Cohesion

132.

_________between modules in a software system must be minimized.

a)

a. Coupling

b)

b. Cohesion

c)

c. Neither coupling nor cohesion

d)

d. Both coupling and cohesion

133.

_________between modules in a software system must be maximized.

a)

a. Coupling

b)

b. Cohesion

c)

c. Neither coupling nor cohesion

d)

d. Both coupling and cohesion

134.

What is the waterfall model?

a)

a. A phase cannot be started until the previous phase is completed

b)

b. A phase can be started until the previous phase is completed

c)

c. The development phase begins simultaneously

d)

d. The development process starts at the design phase

135.

A data structure can be _______.

a)

a. only an array

b)

b. only a record

c)

c. only a linked list

d)

d. an array, a record, or a linked list

136.

An array that consists of just rows and columns is a _______ array.

a)

a. one-dimensional

b)

b. two-dimensional

c)

c. three-dimensional

d)

d. multidimensional

137.

Each element in a record is called _______.

a)

a. a variable

b)

b. an index

c)

c. a field

d)

d. a node

138.

All the members of a record must be _______.

a)

a. the same type

b)

b. related types

c)

c. integer type

d)

d. character type

139.

_______ is an ordered collection of data in which each element contains the location of the next element.

a)

a. An array

b)

b. A record

c)

c. A linked list

d)

d. A file

140.

In a linked list, each element contains _______.

a)

a. only data

b)

b. only a link

c)

c. neither data nor a link

d)

d. data and a link

141.

The _______ is a pointer that identifies the next element in the linked list.

a)

a. link

b)

b. node

c)

c. array

d)

d. data

142.

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

a)

a. the first

b)

b. the second

c)

c. the last

d)

d. any

143.

An empty linked list consists of _______.

a)

a. a node

b)

b. two nodes

c)

c. data and a link

d)

d. a null head pointer

144.

To traverse a list, you need a _______ pointer.

a)

a. null

b)

b. walking

c)

c. beginning

d)

d. insertion

145.

In an abstract data type, _______.

a)

a. the ADT implementation is known

b)

b. the ADT implementation is hidden

c)

c. the ADT public operations are hidden

d)

d. Nothing is hidden

146.

A stack is a _________ structure.

a)

a. FIFO

b)

b. LIFO

c)

c. DIFO

d)

d. SIFO

147.

A(n) _______ list is also known as a queue.

a)

a. LIFO

b)

b. FIFO

c)

c. unordered

d)

d. ordered

148.

If A is the first data element input into a stack, followed by B, C, and D, then _______ is the first element to be removed.

a)

a. A

b)

b. B

c)

c. C

d)

d. D

149.

If A is the first data element input into a queue, followed by B, C, and D, then _______ is the first element to be removed.

a)

a. A

b)

b. B

c)

c. C

d)

d. D

150.

The pop operation _______ of the stack.

a)

a. deletes an item from the top

b)

b. deletes an item from the bottom

c)

c. inserts an item at the top

d)

d. inserts an item at the bottom

151.

The push operation _______ of the stack.

a)

a. deletes an item from the top

b)

b. deletes an item from the bottom

c)

c. inserts an item at the top

d)

d. inserts an item at the bottom

152.

In a binary tree, each node has _______ two subtrees.

a)

a. more than

b)

b. less than

c)

c. at most

d)

d. at least

153.

In preorder traversal of a binary tree, the ______.

a)

a. left subtree is processed first

b)

b. right subtree is processed first

c)

c. root is processed first

d)

d. the root is never processed

154.

In _______ traversal of a binary tree, the right subtree is processed last.

a)

a. preorder

b)

b. inorder

c)

c. postorder

d)

d. any order

155.

In postorder traversal of a binary tree, the left subtree is processed _______.

a)

a. first

b)

b. second

c)

c. last

d)

d. after the right subtree

156.

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

a)

a. first

b)

b. second

c)

c. last

d)

d. two times

157.

What is a full binary tree?

a)

a. Each node has exactly zero or two children

b)

b. Each node has exactly two children

c)

c. All the leaves are at the same level

d)

d. Each node has exactly one or two children

158.

_______ file can be accessed randomly.

a)

a. A sequential

b)

b. An indexed

c)

c. A hashed

d)

d. Any

159.

_______ file can be accessed sequentially.

a)

a. A sequential

b)

b. An indexed

c)

c. A hashed

d)

d. No

160.

When a sequential file is updated, the ______ file gets the actual update.

a)

a. new master

b)

b. old master

c)

c. transaction

d)

d. error report

161.

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

a)

a. new master

b)

b. old master

c)

c. transaction

d)

d. error report

162.

When a sequential file is updated, the ______ file contains the changes to be applied.

a)

a. new master

b)

b. old master

c)

c. transaction

d)

d. error report

163.

After a sequential file is updated, the _______ file contains the most current data.

a)

a. new master

b)

b. old master

c)

c. transaction

d)

d. error report

164.

If the transaction file key is 20 and the first master file key is 25, then we _______.

a)

a. add the new record to the new master file

b)

b. revise the contents of the old master file

c)

c. delete the data

d)

d. write the old master file record to the new master file

165.

If the transaction file key is 20 with a delete code and the master file key is 20, then we _______.

a)

a. add the transaction to the new master file

b)

b. revise the contents of the old master file

c)

c. delete the data

d)

d. write the old master file record to the new master file

166.

An indexed file consists of _______.

a)

a. only a sequential data file

b)

b. only an index

c)

c. only a random data filed.

d)

d. an index and random data file

167.

The index of an indexed file has _______ fields.

a)

a. two

b)

b. three

c)

c. four

d)

d. any number of

168.

In the _______ hashing method, selected digits are extracted from the key and used as the address.

a)

a. direct

b)

b. division remainder

c)

c. modulo division

d)

d. digit extraction

169.

In the _______ hashing method, the key is divided by the file size, and the address is the remainder plus 1.

a)

a. direct

b)

b. modulo division

c)

c. division remainder

d)

d. digit extraction

170.

In the _______ hashing method, there are no synonyms or collisions.

a)

a. direct

b)

b. modulo division

c)

c. division remainder

d)

d. digit extraction

171.

______ are keys that hash to the same location in the data file.

a)

a. Collisions

b)

b. Buckets

c)

c. Synonyms

d)

d. Linked lists

172.

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

a)

a. collision

b)

b. probe

c)

c. synonym

d)

d. linked list

173.

The address produced by a hashing algorithm is the _______ address.

a)

a. probe

b)

b. synonym

c)

c. collision

d)

d. home

174.

In the ______ collision resolution method, we try to put data that cannot be placed in location 123 into location 124.

a)

a. open addressing

b)

b. linked list

c)

c. bucket hashing

d)

d. random hashing

175.

Which one of the following explains the sequential file access method?

a)

a. random access according to the given byte number

b)

b. read bytes one at a time, in order

c)

c. read/write sequentially by record

d)

d. read/write randomly by record

176.

The data structure used for file directory is called ____________

a)

a. mount table

b)

b. hash table

c)

c. file table

d)

d. process table

177.

In a three-level DBMS architecture, the layer that interacts directly with the hardware is the _______ level.

a)

a. external

b)

b. conceptual

c)

c. internal

d)

d. physical

178.

In a three-level DBMS architecture, the _______ level determines where data is actually stored on the storage devices.

a)

a. external

b)

b. conceptual

c)

c. internal

d)

d. physical

179.

The _______ level of a three-level DBMS architecture defines the logical view of the data.

a)

a. external

b)

b. conceptual

c)

c. internal

d)

d. physical

180.

The data model and the schema of a DBMS are often defined at the _______ level.

a)

a. external

b)

b. conceptual

c)

c. internal

d)

d. physical

181.

In a three-level DBMS architecture, the _______ level interacts directly with the users.

a)

a. external

b)

b. conceptual

c)

c. internal

d)

d. physical

182.

Of the various database models, the _______ model is the most prevalent today.

a)

a. hierarchical

b)

b. network

c)

c. relational

d)

d. linked list

183.

Each column in a relation is called _______.

a)

a. an attribute

b)

b. a tuple

c)

c. a union

d)

d. an attitude

184.

Each row in a relation is called _______.

a)

a. an attribute

b)

b. a tuple

c)

c. a union

d)

d. an attitude

185.

A unary operator is applied to _______ relation(s) and creates an output of ________ relation(s).

a)

a. one, one

b)

b. one, two

c)

c. two, one

d)

d. two, two

186.

A binary operator is applied to _______ relations (s) and creates an output of ________ relation(s).

a)

a. one, one

b)

b. one, two

c)

c. two, one

d)

d. two, two

187.

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

a)

a. insert

b)

b. delete

c)

c. update

d)

d. select

188.

If you want to change the value of an attribute of a tuple, you use the _______ operation.

a)

a. project

b)

b. join

c)

c. update

d)

d. select

189.

The operation that takes two relations and combines them based on common attributes is the _________ operation.

a)

a. join

b)

b. project

c)

c. union

d)

d. intersection

190.

If you need to delete an attribute in a relation, you can use the _______ operation.

a)

a. join

b)

b. project

c)

c. union

d)

d. intersection

191.

You want to create a relation called New that contains tuples that belong to both relation A and relation B. For this, you can use the _______ operation.

a)

a. select

b)

b. union

c)

c. project

d)

d. intersection

192.

Which of the following is a unary operator?

a)

a. intersection

b)

b. union

c)

c. join

d)

d. project

193.

Data is compressed using a dictionary with indexes to strings. This is __________ .

a)

a. Huffman encoding

b)

b. Lempel Ziv encoding

c)

c. Morse coding

d)

d. lossy coding

194.

A string of one hundred 0s is replaced by two markers, a 0, and the number 100. This is ___.

a)

a. run-length encoding

b)

b. Morse coding

c)

c. Huffman encoding

d)

d. Lempel Ziv encoding

195.

___ is an example of lossy compression.

a)

a. Huffman encoding

b)

b. Lempel Ziv encoding

c)

c. Run-length encoding

d)

d. JPEG

196.

In a ___ data compression method, the received data is an exact copy of the original message.

a)

a. lossless

b)

b. lossy

c)

c. JPEG

d)

d. MPEG

197.

___ data compression method, the received data need not be an exact copy of the original message.

a)

a. Only in MP3

b)

b. Only in JPEG

c)

c. Only in MPEG

d)

d. In MP3, JPEG, or MPEG

198.

___ encoding is a lossless data compression method.

a)

a. Only Huffman

b)

b. Only Run-length

c)

c. Only LZ

d)

d. Huffman, run-length, or LZ

199.

In ___ encoding, the more frequently occurring characters have shorter codes than the less frequently occurring characters.

a)

a. Huffman

b)

b. run-length

c)

c. LZ

d)

d. JPEG

200.

In ___ encoding, PPPPPPPPPPPPPPP can be replaced by P15.

a)

a. Huffman

b)

b. run-length

c)

c. LZ

d)

d. MPEG

201.

LZ encoding requires ___.

a)

a. only a dictionary

b)

b. only a buffer

c)

c. only an algorithm

d)

d. a dictionary, a buffer, and an algorithm

202.

JPEG encoding involves ___, a process that reveals the redundancies in a block.

a)

a. blocking

b)

b. the discrete cosine transform

c)

c. quantization

d)

d. vectorization

203.

In JPEG encoding, the ___ process breaks the original picture into smaller blocks and assigns a value to each pixel in a block.

a)

a. blocking

b)

b. DCT

c)

c. quantization

d)

d. vectorization

204.

The last step in JPEG, ___, removes redundancies.

a)

a. blocking

b)

b. quantization

c)

c. compression

d)

d. vectorization

205.

___ is a lossy compression method for pictures and graphics, whereas ___ is a lossy compression method for video.

a)

a. DCT, MPEG

b)

b. MPEG, JPEG

c)

c. JPEG, MPEG

d)

d. JPEG, DCT

206.

What is compression?

a)

a. To convert one file to another

b)

b. To reduce the size of data to save space

c)

c. To minimize the time taken for a file to be downloaded

d)

d. To compress something by pressing it very hard

207.

Which of these terms is a type of data compression?

a)

a. resolution

b)

b. zipping

c)

c. inputting

d)

d. caching

208.

Three security goals are _____.

a)

a. confidentiality, cryptography, and nonrepudiation

b)

b. confidentiality, encryption, and decryption

c)

c. confidentiality, integrity, and availability

d)

d. confidentiality, denial of service, and masquerading

209.

Which of the following attacks is threatening integrity?

a)

a. Masquerading

b)

b. Traffic Analysis

c)

c. Denial of service

d)

d. Encoding

210.

Which of the following attacks is threatening availability?

a)

a. Replaying

b)

b. Modification

c)

c. Denial of service

d)

d. Decoding

211.

_____________ means concealing the contents of a message by enciphering.

a)

a. Steganography

b)

b. Cryptography

c)

c. Compressing

d)

d. Authentication

212.

______________means concealing the message by covering it with something else.

a)

a. Cryptography

b)

b. Steganography

c)

c. Compressing

d)

d. Authentication

213.

In __________cryptography, the same key is used by the sender and the receiver.

a)

a. symmetric-key

b)

b. asymmetric-key

c)

c. public-key

d)

d. open-key

214.

In _________ cryptography, the same key is used in both directions.

a)

a. symmetric-key

b)

b. asymmetric-key

c)

c. public-key

d)

d. open-key

215.

_________ cryptography is often used for long messages.

a)

a. Symmetric-key

b)

b. Asymmetric-key

c)

c. Public-key

d)

d. Open-key

216.

__________ cryptography is often used for short messages.

a)

a. Symmetric-key

b)

b. Asymmetric-key

c)

c. Secret-key

d)

d. Open-key

217.

_________means that the sender and the receiver expect confidentiality.

a)

a. Nonrepudiation

b)

b. Integrity

c)

c. Authentication

d)

d. encryption and decryption

218.

___________ means that the data must arrive at the receiver exactly as they were sent.

a)

a. Nonrepudiation

b)

b. Message integrity

c)

c. Authentication

d)

d. Secrecy

219.

______________ can provide authentication, integrity, and nonrepudiation for a message.

a)

a. Encryption/decryption

b)

b. Digital signature

c)

c. Compression

d)

d. Key-exchange

220.

In ___________, the identity of a party is verified once for the entire duration of system access.

a)

a. entity authentication

b)

b. message integrity

c)

c. message authentication

d)

d. message encryption

221.

In __________ cryptography, everyone has access to everyone's public key.

a)

a. symmetric-key

b)

b. asymmetric-key

c)

c. secret-key

d)

d. private-key

222.

In the asymmetric-key method used for confidentiality, which key(s) is (are) publicly known?

a)

a. encryption key only

b)

b. decryption key only

c)

c. both encryption and decryption keys

d)

d. neither encryption key nor decryption key

223.

The _______ statement adds 1 to the variable.

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. complement

224.

The _______ statement repeats one or more actions.

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. complement

225.

The _______ statement subtracts 1 from the variable.

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. complement

226.

To clear a variable, we use the _______ statement(s).

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. decrement and loop

227.

To assign a number to a variable, we use the _______ statement(s).

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. decrement and loop

228.

To copy the value of one variable to another, we use the ____ statement(s).

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. increment, decrement, and loop

229.

A Turing machine has these components: _______.

a)

a. tape, memory, and read/write head

b)

b. disk, controller, and read/write head

c)

c. tape, controller, and read/write head

d)

d. disk, memory, and controller

230.

In a Turing machine, the _______ holds a sequence of characters.

a)

a. disk

b)

b. tape

c)

c. controller

d)

d. read/write head

231.

The _______ is the theoretical counterpart of the CPU.

a)

a. disk

b)

b. tape

c)

c. controller

d)

d. read/write head

232.

The controller has _______ states.

a)

a. three

b)

b. four

c)

c. a finite number of

d)

d. an infinite number of

233.

A _______ is a pictorial representation of the states and their relationships to each other.

a)

a. transition diagram

b)

b. flowchart

c)

c. transition table

d)

d. Turing machine

234.

A _______ shows, among other things, the movement of the read/write head, the character read, and the character written.

a)

a. diagram

b)

b. flowchart

c)

c. transition table

d)

d. Turing machine

235.

We use _______ to denote a program's complexity.

a)

a. the Turing number

b)

b. big-O notation

c)

c. factorials

d)

d. the Simple Language

236.

The complexity of a problem is O (log10 n) and the computer executes 1 million instructions per second. How long does it take to run the program if the number of operations is 10,000?

a)

a. 1 microsecond

b)

b. 2 microseconds

c)

c. 3 microseconds

d)

d. 4 microseconds

237.

When does the code block following while(x<100) execute?

a)

a. When x is less than one hundred

b)

b. When x is greater than one hundred

c)

c. When x is equal to one hundred

d)

d. While it wishes

238.

The main foundation of thinking machines came from:

a)

a. Sir Isaac Newton

b)

b. Gottfried W. Leibniz

c)

c. Alan Turing

d)

d. John McCarthy

239.

The term Artificial Intelligence (AI) was first coined by:

a)

a. Alan Turing

b)

b. John McCarthy

c)

c. Steven Spielberg

d)

d. Richard H. Richen

240.

Two programing languages specifically designed for AI are:

a)

a. C and C++

b)

b. Java and C++

c)

c. LISP and PROLOG

d)

d. FORTRAN and COBOL

241.

A node in semantic network becomes ______.

a)

a. a slot in frames

b)

b. an edge in frames

c)

c. an object in frames

d)

d. a line in frames

242.

Which of the following is not a sentence in a propositional logic:

a)

a. Ford is a car.

b)

b. If John is home then Mary is at work.

c)

c. True.

d)

d. Where is John?

243.

Two quantifiers " and $ are used in:

a)

a. propositional logic

b)

b. predicate logic

c)

c. atomic sentences

d)

d. conclusion of any argument

244.

To find the depth of an object, we use:

a)

a. edge detection

b)

b. segmentation

c)

c. stereo vision

d)

d. shading

245.

To find the orientation of an object, we use:

a)

a. stereo vision

b)

b. motion

c)

c. texture

d)

d. segmentation

246.

In language understanding, parsing a sentence is part of:

a)

a. speech recognition

b)

b. syntactic analysis

c)

c. semantic analysis

d)

d. pragmatic analysis

247.

We use brute-force search:

a)

a. if we have no prior knowledge about the search

b)

b. if we need to do the search quickly

c)

c. if we need to do the search thoroughly

d)

d. after performing heuristic search

248.

In Facebook, friendship is a _______ relationship.

a)

a. one-to-one

b)

b. one-to-many

c)

c. many-to-one

d)

d. many-to-many

249.

Communication in Facebook is a _________ relationship.

a)

a. one-to-one

b)

b. one-to-many

c)

c. many-to-one

d)

d. many-to-many

250.

The home page in Facebook can be used __________.

a)

a. only for sign-up

b)

b. only for log-in

c)

c. both for sign-up and log-in

d)

d. neither for sign-up nor for log-in

251.

To find friends in Facebook, the member can ______.

a)

a. can accept Facebook recommendation

b)

b. follow email contacts

c)

c. look for old friends

d)

d. all of the above

252.

When you are in Facebook, you can ______.

a)

a. post news.

b)

b. read news

c)

c. neither a nor b

d)

d. both a and b

253.

In Twitter, a message can be ___________:

a)

a. of any size

b)

b. of maximum 100 characters

c)

c. of maximum 140 characters

d)

d. of maximum 200 characters

254.

In Twitter, the relationship between member is based on:

a)

a. friendship

b)

b. following

c)

c. either a or b

d)

d. both a and b

255.

In Twitter, follower-member is a ________ relationship.

a)

a. one-to-one.

b)

b. one-to-many

c)

c. many-to-one

d)

d. many-to-many

256.

In Twitter, communication between the sender and the receiver of a tweet is a

______________.

a)

a. one-to-one.

b)

b. one-to-many

c)

c. many-to-one

d)

d. many-to-many

257.

In Twitter, when a message is posted, __________

a)

a. all members in the twitter can see it.

b)

b. only followers of the sender can see it.

c)

c. only friends of the sender can see it.

d)

d. none of the above

258.

The _______ statement repeats one or more actions.

a)

a. increment

b)

b. decrement

c)

c. loop

d)

d. complement