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.

56.

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.

57.

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

58.

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

59.

Which of these criteria is not important while classifying files ?

A.

Organization method

B.

Nature of content in the file

C.

Size of the file

D.

Storage medium

Correct answer is D

While classifying files, the storage medium is not a criterion. The classification of files is based on the nature of the content in the file, the organization method, and the size of the file. The storage medium is where the file is stored, which does not affect the classification of the file

60.

What is the shortcut for creating a new document ?

A.

Ctrl + N

B.

Ctrl + O

C.

Ctrl + Q

D.

Ctrl + M

Correct answer is A

The shortcut for creating a new document is Ctrl + N. This is a standard shortcut across many applications and operating systems