Computer Science questions and answers

Computer Science Questions and Answers

Challenge your competence level in computers, computing, algorithms, hardware and software with these Computer science questions and answers.

61.

What does R stands for in the CRUD acronym ?

A.

Retrieve

B.

Redirect

C.

Read

D.

Relate

Correct answer is C

In the CRUD acronym, R stands for 'Read'. CRUD stands for Create, Read, Update, and Delete. These are the four basic functions of persistent storage in databases

62.

What part of the central processing unit coordinates other units and manages the computer resources ?

A.

coordinating unit

B.

Memory unit

C.

Arithmetic Logic unit

D.

Control unit

Correct answer is D

The Control Unit of the Central Processing Unit (CPU) coordinates other units and manages the computer resources. It directs the operation of the processor, and interacts with the other hardware components in the system to carry out the instructions of a program. It is responsible for fetching, decoding, and executing instructions from the memory unit and performing arithmetic and logical operations

63.

Evaluate \(1011_2 + 122_4\), leaving your answer in base 10.

A.

37

B.

51

C.

47

D.

73

Correct answer is A

1011\(_2\) = 1 × 2\(^3\) + 0 × 2\(^2\) + 1 × 2\(^1\) + 1 × 2\(^0\)
1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 8 + 0 + 2 + 1 = 11
122\(_4\) = 1 × 4\(^2\) + 2 × 4\(^1\) + 2 × 4\(^0\)
1 × 16 + 2 × 4 + 2 × 1 = 16 + 8 + 2 = 26
11 + 26 = 37

64.

Which of these storage devices can act as a buffer between the CPU and the main memory ?

A.

Hard disk

B.

Floppy disk

C.

Cache Memory

D.

Flash drive

Correct answer is C

Cache memory is a very high speed semiconductor memory which can speed up CPU, it acts as a buffer between the CPU and main memory

65.

What is the difference between an assembler and a compiler ?

A.

an assembler converts a machine language code into assembly level language code while a compiler converts high level programming language to a machine language code

B.

an assembler converts assembly level language code into machine language code while a compiler converts high level programming language code to a machine language code

C.

a compiler converts assembly level language code into machine lange while an assembler converts high level programming language to a machine language code

D.

they both convert assembly level language code into machine language

Correct answer is B

An assembler converts assembly level language code into machine language code while a compiler converts high level programming language code to a machine language code

66.

Translators are type of ?

A.

System software

B.

Operating system

C.

Utility programs

D.

Application software

Correct answer is A

Translators are a type of system software. They are used to convert source code written in one programming language (the source language) into another programming language (the target language). Examples of translators include compilers, interpreters, and assemblers. System software is a type of computer software designed to run a computer's hardware and application programs. It includes the operating system, device drivers, diagnostic tools, servers, windowing systems, utilities, and more

67.

At what stage in system development life cycle are all data documented in the form of detailed data flow diagrams(DFDs)

A.

System design

B.

Feasibility study

C.

System analysis

D.

Investigative study

Correct answer is C

During the System Analysis stage of the System Development Life Cycle (SDLC), all data are documented in the form of detailed Data Flow Diagrams (DFDs). The System Analysis stage involves understanding and documenting the business processes and requirements of the new system

68.

The only possible number base for 235\(_x\) among the following is ?

A.

3

B.

5

C.

4

D.

6

Correct answer is D

A number cannot contain digits that are greater than its base.
therefore 235 can possible be in base 6.

69.

How many bits are in one nibble ?

A.

2

B.

4

C.

8

D.

16

Correct answer is B

A nibble is a four-bit aggregation, or half an octet. It is also known as half-byte or tetrade. In a networking or telecommunication context, the nibble is often called a semi-octet, quadbit, or quartet. A nibble has sixteen (2^4) possible values

70.

Which of the following is a valid variable name in Python?

A.

my_variable$

B.

my_variable

C.

my-variable

D.

1my_variable

Correct answer is B

Variable names in Python must start with a letter or underscore, and can only contain letters, numbers, and underscores. The other options are invalid because they either start with a number (option C) or contain a special character (option D).


Sub-categories

JAMB

WAEC

NECO