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
20 questions
705-Hazard Communication Program

Quiz
•
Professional Development
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
15 questions
Midterm-2nd Quiz-Research 1

Quiz
•
Professional Development
20 questions
CPR_Quiz_Arrays and strings

Quiz
•
Professional Development
15 questions
Circular Linked List

Quiz
•
Professional Development
15 questions
[FAST TRACK] Android quiz 08 (03.06)

Quiz
•
Professional Development
25 questions
Excel and Power BI Skills

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

Quiz
•
University - Professi...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade