CUET LEVEL 2  CHAPTER STACK

CUET LEVEL 2 CHAPTER STACK

12th Grade

15 Qs

quiz-placeholder

Similar activities

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Create a Website 1

Create a Website 1

KG - University

10 Qs

MEDIA

MEDIA

12th Grade

10 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

MS. WORD DASAR

MS. WORD DASAR

9th - 12th Grade

10 Qs

Diagnóstico Mantenimiento y Redes

Diagnóstico Mantenimiento y Redes

12th Grade

13 Qs

Editing Video

Editing Video

12th Grade

10 Qs

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

CUET LEVEL 2  CHAPTER STACK

CUET LEVEL 2 CHAPTER STACK

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Bodhi School

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?