Python Quiz 7

Python Quiz 7

University

10 Qs

quiz-placeholder

Similar activities

L6: Inventory costing method

L6: Inventory costing method

12th Grade - University

6 Qs

Root Cause Analysis

Root Cause Analysis

4th Grade - Professional Development

8 Qs

ICAEW CFAB ACCOUNTING (AG) - ch. 6

ICAEW CFAB ACCOUNTING (AG) - ch. 6

University

15 Qs

Cignal Technical Quiz

Cignal Technical Quiz

University

15 Qs

Cataloging

Cataloging

University

10 Qs

Supporting Investigation

Supporting Investigation

University

6 Qs

CFAB - Accounting 1 - Revision - Chapter 4

CFAB - Accounting 1 - Revision - Chapter 4

University

10 Qs

Product Training

Product Training

University - Professional Development

15 Qs

Python Quiz 7

Python Quiz 7

Assessment

Quiz

Professional Development

University

Medium

Created by

ENDURO SRM

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many built-in data structures Python has?

Two

Four

Eight

More than eight

Answer explanation

Python has 4 built-in Data Structures -

List

Tuple

Set

Dictionary

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following data structure is unordered?

List

Tuple

Dictionary

None of these

Answer explanation

List and Tuple are Ordered

Set and Dictionary are Unordered

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why we used set data structure to store the alphabets of the word?

Because sets cannot be changed

Because sets are unordered

Because sets work well with strings

Because sets stores unique values

Answer explanation

Like in case of "Loop"

We want set to be {'L', 'O', 'P'},

not {'L', 'O', 'O', 'P'}

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement can be used to close the game?

root.quit( )

root.commit( )

root.exit( )

root.close( )

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will this line of code do?

e1.delete(0, tkinter.END)

Remove the first character entered in Entry box e1

Edit the last character entered in Entry box e1

Print all the characters entered in Entry box e1

Remove all the characters entered in Entry box e1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the use of global keyword before a variable name?

To use the variable both inside and outside a function

To have two variables with same name

To make the variable value unchangeable

To export the variable to other program files

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method takes all items in an iterable and joins them into one string?

join() method

connect() method

str() method

concatenate() method

Answer explanation

Eg - ' '.join(word_list)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?