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
16 questions
C-Extended
Quiz
•
University
20 questions
Fianal JAVA OOP
Quiz
•
University
12 questions
javaquizvivek
Quiz
•
University
10 questions
Python Basics
Quiz
•
University
20 questions
GirlsWhoML Workshop 0
Quiz
•
University
20 questions
1212 Midterm Review
Quiz
•
University
10 questions
Python
Quiz
•
University
20 questions
ITIPT01 Quiz No 1
Quiz
•
University
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