Search Header Logo

QUIZZERIA

Authored by Srijha Srijha

Engineering

Professional Development

Used 1+ times

QUIZZERIA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module is used to work with regular expressions in Python?

regex

re

regx

reg

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about Python sets?

Sets allow duplicate values

Sets are mutable and ordered

Sets are immutable

Sets do not allow duplicate values   

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will sorted([3, 1, 4, 1, 5], reverse=True) return?

[1, 1, 3, 4, 5]

[5, 4, 3, 1, 1] 

[5, 1, 4, 1, 3]

[3, 1, 4, 1, 5]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of enumerate() in Python?

It adds an index to an iterable  

It creates a list from a range

It sorts a list

It removes duplicates from a list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following collections in Java allows duplicate keys?

HashMap

TreeMap

Hashtable

None of the above  

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a wrapper class in Java?

Integer

Float

Character

String  

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to implement an interface in Java?

class A implements B {}

class A extends B {}

class A implements B, C {}

Both (a) and (c)  

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?