
CUET LEVEL 2 CHAPTER STACK
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Bodhi School
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the "Andheri" in the following list:
names=[Bandra, Thene, Andheri, Colalk"]
0
1
2
3
Answer explanation
Andheri appears 3rd in the list but indecing starts from 0 so names [2] will display Andheri
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
colours. append("blue")
colours. append("green")
colours. append("red")
print(colours[2])
blue
green
red
error
Answer explanation
Three colours are appended as blue, green, red. The red colour is at the 3rd position and according to indecing at the 2nd position so print (colours[2]) will displays red as its output.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what would this code do?
list=['Delhi', 'Mumbai', 'Chennai',' Kolkata']
print (list. pop())
Remove 'Kolkata' from the list
Remove 'Delhi' from the list
Remove 'Kolkata' from the list and print it out to the shell
An error
Answer explanation
The function pop() returns the elements from the list whole removing it from the list. Thus it removes Kolkata from the list & prints it out of the shell
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which colour will be replaced with yellow?
colour=["red", "green", "blue" ]
colour[1]="yellow"
print(colour)
red
green
blue
none, yellow will be added to the list
Answer explanation
In the existing list colour[1] belongs to green . so after colour [1]="yellow" the new list will be colour=["red", "yellow", "blue"]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This list contains items of what data type? list=[1,4,6]
string
boolean
float
interger
Answer explanation
String means a sequence of character, Boolean means True or False Float means decimal numbers like 13.2 , 45.6. etc and Integers means 1,2, -7, etc. Thus the list contains integers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbols are used to open and close a list?
( ) round brackets
{ } curly brackets
[ ] square brackets
" " speech marks
Answer explanation
The square brackets [ ] are used to enclose the items of the list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The prefix form of A-B/(C * D^ E) is
-/*ACBDE
-A/B* C ^ DE
-ABCD*^DE
-A/BC*^DE
Answer explanation
The solution of infix expression A-(B/C*D^E)) to prefix is : -A(B/(C*D^E))
-A/B*C^DE. Thus prefix expression is -A/B*C^DE
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
15 questions
Network Advantages and Disadvantages
Quiz
•
10th Grade - University
10 questions
Pre tes dan Post test
Quiz
•
12th Grade
17 questions
Shortcut keys
Quiz
•
7th - 12th Grade
10 questions
Kuis Refleksi 2
Quiz
•
9th - 12th Grade
20 questions
Application and System Software
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
