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

Quiz
•
Professional Development
•
Professional Development
•
Hard
Srinivasa Seelam
Used 21+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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 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
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
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
[FAST TRACK] Android quiz 08 (03.06)

Quiz
•
Professional Development
25 questions
Excel and Power BI Skills

Quiz
•
Professional Development
15 questions
Conditions and Grouping

Quiz
•
Professional Development
20 questions
Basics of Python Programming Unit-1

Quiz
•
University - Professi...
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
20 questions
CPR_Quiz_Arrays and strings

Quiz
•
Professional Development
25 questions
core java 2

Quiz
•
Professional Development
15 questions
python dictionary and set

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade