Search Header Logo

Round 4 - Harvest

Authored by Aditya Singh

Computers

University

Used 6+ times

Round 4 - Harvest
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

a = 4.5

b = 2

print(a//b)

2.0

No such operator

Division Error

2

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

a = True

b = False

c = False

if a or b and c:

print("TECH NEW KAL")

else:

print("tech new kal")

TECH NEW KAL

tech new kal

Syntax Error

Compilation Error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

for i in range(2):

print(i)

for i in range(4, 6):

print(i)

2

4

6

1

2

5

0

1

4

5

1

2

4

6

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

public class Test  

{  

public static void main(String args[])  

{  

int i=20+ +9- -12+ +4- -13+ +19;  

System.out.println(i);  

}  

}  

37

77

27

66

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

nameList = ["Harsh", "Prateek", "Bob"]

print(nameList[1][-1])

Bob

k

keetarp

Harsh, Prateek

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

class Test {

    public static void main(String[] args) {

        for(int i = 0; true; i++) {

            System.out.println("Hello");

            break;

        }

    }

}

Hello

HelloHelloHelloHelloHelloHelloHello

Hello

Hello

Hello

Hello

Infinite loop

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

for i in [1, 2, 3, 4][::-1]:

print(i)

1

2

3

1

2

3

4

4

3

2

1

4

3

2

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?