Round 2 Debug-The-Code

Quiz
•
Computers
•
University
•
Hard
Aditya Singh
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The following code is supposed to print "mello world"
s = "hello world"
s[0] = "m"
print(s)
is there an error?
Error: Cant change immutable variables
No error
Prints "hello world"
error missing semicolon
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Fill in the blank to get the 120 as output.
calc
foo
none of these
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What should be filled in the blank to get [3, 2, 1] as output?
<
>
<=
>=
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The complexity of bubble sort algorithm is?
O(n)
O(log n)
O(n^2)
O(n log n)
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What should be filled in the blank to get 15 as output
length()
len()
length
size
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following lines of code contains an error in Java?
int x = 5;
double y = 3.14;
String z = "hello";
boolean w = True;
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following lines of code contains an error in Python?
A. x = 5
B. y = "hello"
C. z = [1, 2, 3]
D. w = (4, 5, 6)
Only A
Both A and B
Both A and D
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
15 questions
HCI 584 Python quiz

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
20 questions
Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
C programming

Quiz
•
University
20 questions
Python 101

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University