Search Header Logo

HACKATHON HUSTLE(ROUND 1)

Authored by Srinivasa Seelam

Professional Development

Professional Development

Used 22+ times

HACKATHON HUSTLE(ROUND 1)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

which of the following python code gives output 9?(a=5,b=4)

data = a & b

a = a ^ b

b = data << 1

data = a & b

a = a ^ b

b = data >> 1

data = a ^ b

a = a & b

b = data << 1

data = a >> b

a = a & b

b = a^b

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Is python supports multi-threading?

No
Yes

3.

MULTIPLE SELECT QUESTION

30 sec • 5 pts

which of the following code will replaces space with a given character in python?

string = "Hello World"
character = "-"
new_string = string.replace(" ", character)
print(new_string)

string = "Hello World"
character = "-"
table = str.maketrans(" ", character)
new_string = string.translate(table)
print(new_string)

Both 1 &2

None

4.

FILL IN THE BLANK QUESTION

45 sec • 5 pts

If two lists containing the same elements at different positions are called

(ex: silent and listen)

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts


What does URL stand for?

Uniform Resource Locator

Uniform Resource Location

Uniform Reset Locator

Unified Resource Locator

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. Which of the following is a graph traversal algorithm?

Breadth first search

Depth first search

Dijkstra's algorithm

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following program?

from math import *

a = 2.13

b = 3.7777

c = -3.12

print(int(a), floor(b), ceil(c), fabs(c))

2 3 -4 3

2 3 -3 3.12

2 4 -3 3

2 3 -4 3.12 

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 Professional Development