Search Header Logo

Computer Science Fundamentals Quiz

Authored by Olga Yugay

Science

University

Used 10+ times

Computer Science Fundamentals Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function of the Control Unit in a CPU?

To perform arithmetic operations

To store data

To direct the operation of the processor

To manage input and output devices

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List a is defined as follows:

a = [1, 2, 3, 4, 5]

Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:

a[2:3] = []

a[2] = []

a[2:2] = []

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ALU stand for?

Arithmetic Logic Unit

Advanced Logic Unit

Analog Logic Unit

Arithmetic Language Unit

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of cache memory?

To store permanent data

To provide fast access to frequently used data

To manage input and output operations

To execute machine language instructions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component of a computer holds both data and instructions in a von Neumann architecture?

Input Unit

Arithmetic Logic Unit

Memory Unit

Control Unit

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List a is defined as follows:

a = ['a', 'b', 'c']

Which of the following statements adds 'd' and 'e' to the end of a, so that it then equals ['a', 'b', 'c', 'd', 'e']:


a[-1:] = ['d', 'e']

a += ['d', 'e']

a.append(['d', 'e'])

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume x and y are assigned as follows:

x = 5

y = -5

What is the effect of this statement:

x, y = (y, x)[::-1]

The values of x and y are swapped

Both x and y are -5


The values of x and y are unchanged

Both x and y are 5


Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Science