Search Header Logo

Python Quiz Part 3

Authored by Richu Thomas

Other

Professional Development

Used 2+ times

Python Quiz Part 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What data structure does a binary tree degenerate to if it isn't balanced properly?

linked list
queue
set
OrderedDict

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is output for −<br />2 * 2 **3

12
64
16
36

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What command is used to insert 6 in a list ‘‘L’’ at 3rd position ?

L.insert(2,6)
L.insert(3,6)
L.add(3,6)
L.append(2,6)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select the correct function among them which can be used to write the data to perform for a binary output?

Write
Output.binary
Dump
Binary.output

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is output for −<br /><br />a = ['he', 'she', 'we']<br /><br />' '.join(a)

['heshewe']
heshewe'
['he she we']
he she we'

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is invalid in python for z = 5 ?

z = z++
z = ++z
z += 1
z -= 1

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator has higher precedence in the following list

% Modulus
& BitWise AND
**, Exponent
> Comparison

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?