What will be the output of the following Python program?
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
Snippets LookOver-round 2
Quiz
•
Computers
•
Professional Development
•
Medium
Vishnu Kumar
Used 9+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python program?
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
error
0 1 2 0
0 1
None of the above
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
#include <stdio.h>
int main()
{
int a=10,b=20;
if(a=b)
{
printf("Equal");
}
else
{
printf("Not Equal");
}
return 0;
}
}
Equal
Not Equal
Runtime error
Compile time error
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
function(){
if(actualtxt.equals(reversetxt)){
return true;
else
return false;
}
}
palindrome
reverseing the string
make exchange of odd and even places
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
SELECT * FROM student_details WHERE Student_name LIKE '%S%';
It will return the name starting with s
It will return the name ending with s
It will return the name who has s in between
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
you are asked to drop a column using alter statement then which syntax you will follow?
ALTER table_name TABLE DROP COLUMN column_name;
ALTER TABLE table_name DROP COLUMN column_name;
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct syntax to add a field using alter command?
ALTER TABLE table_name ADD field_name data type;
ALTER TABLE table_name, field_name data type;
ALTER TABLE field_name data type;
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of this C code?
#include <stdio.h>
int main()
{
while ()
printf("In while loop ");
printf("After loop\n");
}
In while loop after loop
After loop
Compile time error
Infinite loop
10 questions
ตัวแปรและประเภทข้อมูลในภาษาC
Quiz
•
Professional Development
10 questions
T&P Test on MCQs
Quiz
•
Professional Development
15 questions
Linked List
Quiz
•
Professional Development
11 questions
Java Fundamentals
Quiz
•
Professional Development
20 questions
first round quiz
Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language
Quiz
•
Professional Development
13 questions
MindSpace Computers C Quiz-1 2025
Quiz
•
Professional Development
20 questions
QUIZ-5 static, String and StringBuffer
Quiz
•
Professional Development
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