The following code is supposed to print "mello world"
s = "hello world"
s[0] = "m"
print(s)
is there an error?
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
10 questions
Python
Quiz
•
University
15 questions
BASIC C PROGRAMMING
Quiz
•
University
10 questions
Exploring Python: Input and Output Essentials
Quiz
•
9th Grade - University
20 questions
python_4_Vivek
Quiz
•
University
15 questions
Basic Java Quiz
Quiz
•
University
20 questions
Fianal JAVA OOP
Quiz
•
University
12 questions
javaquizvivek
Quiz
•
University
10 questions
Python Basics
Quiz
•
University
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