What will be output of the following code
a="Hello"
print(a[::-1])
output = ?
code
Quiz
•
Fun
•
University
•
Hard
Sam Oswal
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be output of the following code
a="Hello"
print(a[::-1])
output = ?
0
olleh
Hello
olleH
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be output of the following code
int i=2;
int a[]={0,1,2,3,4};
printf("%d",i[a]);
2
0
1
Compilation error
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be output of the following code
for(int i=0;i<5;i++,i--){
printf("%d",i);
}
Compilation error
Runtime error
Infinite loop
None of the above
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
x = 5
y = "Hello"
print(x + y)
What will be the output?
Error
Hello5
5Hello
He5llo
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python is interpreted language?
yes
no
not sure
It is assembled language
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
is %p a valid format specifier in c?
no way !
yes
It is just %d
not sure
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
does C and python both support switch statement?
only python does
only C does
no
yes
25 questions
Capital Cities Quiz - Cognita
Quiz
•
9th Grade - Professio...
25 questions
Boosting AI Quiz
Quiz
•
University
35 questions
SAS Pemrograman Python Kelas XII
Quiz
•
10th Grade - University
25 questions
Simple Machines
Quiz
•
KG - University
30 questions
Community Friday Quiz
Quiz
•
University
30 questions
I/O Systems Quiz
Quiz
•
University
32 questions
Linux Ende
Quiz
•
University
34 questions
OI Test 1 Quiziz
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