Search Header Logo

FIXIT FEST - LEO CLUB (DAY - 2)

Authored by KAVIN S

Education

University

Used 2+ times

FIXIT FEST - LEO CLUB (DAY - 2)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

x = 5

y = 2

print(x * y + 3)

What will be the output of this code?

10

13

15

16

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. Which line contains the error in this Python code?

for i in range(5)

print(i)

  • Line 1

Line 2

Line 1 & 2

No Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

what will be PRINTED ?

  • [3, 4]

  • [2, 3]

  • [1, 2]

  • [4, 5]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

a = 10

b = 3

c = a % b+3

print(c)

What is the output of this code?

  • 3

  • 2

  • 4

  • 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

  1. Which line contains the error in this Java code?

public static void main(String[] args) {

int num = 2;

System.out.println(num / 0);

}

Line 3

Line 2

Line 1

No Error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

def multiply(a, b):

return a * b

result = multiply(4, 5)

print(result)

What will be printed?

9

N/A

error

20

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

  1. What will be the value of x after the following code executes?

x = 0

for i in range(1, 6):

x += i

print(x)

10

25

15

20

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?