
HACKATHON HUSTLE(ROUND 1)
Authored by Srinivasa Seelam
Professional Development
Professional Development
Used 22+ times

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?
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 BLANKS QUESTION
45 sec • 5 pts
If two lists containing the same elements at different positions are called
(ex: silent and listen)
(a)
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
Which of the following is a graph traversal algorithm?
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?