Search Header Logo

Computer Science Quiz

Authored by DHARSINI B

English

University

Computer Science Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following algorithms is used to find the shortest path in a graph with negative edge weights but no negative cycles?

Dijkstra's Algorithm

Bellman-Ford Algorithm

Prim's Algorithm

Kruskal's Algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a scenario where a sequence of digits is arranged in ascending order, which of the following options, when subjected to a binary operation of addition followed by a subtraction of the smallest digit, results in the smallest possible non-negative value?

The largest digit added to the smallest digit

The smallest digit subtracted from the largest digit

The sum of all digits minus the smallest digit

The sum of the smallest and second smallest digits

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following Python code: What will be the output when the code is executed?

4

10

24

16

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following Python code: What will be the output when the code is executed?

12

42

15

27

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following Python code: What will be the output when the code is executed?

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following Python code: What will be the output when the code is executed?

20

31

38

40

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following Python code:

What will be the output when the code is executed?

6

8

9

11

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?