Python Complete course test

Python Complete course test

University

20 Qs

quiz-placeholder

Similar activities

Python Programming - Test 1

Python Programming - Test 1

University - Professional Development

20 Qs

Python Prelims Test

Python Prelims Test

University

15 Qs

Reckon your Techie Quiz - Day 2 - Python (23.08.22)

Reckon your Techie Quiz - Day 2 - Python (23.08.22)

University

25 Qs

No Strings Attached

No Strings Attached

University

20 Qs

Python Programming - Introduction

Python Programming - Introduction

University

15 Qs

Basic Python

Basic Python

University

20 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

CSE 102 Exam 2 Practice

CSE 102 Exam 2 Practice

University

15 Qs

Python Complete course test

Python Complete course test

Assessment

Quiz

Computers

University

Hard

Created by

Gali Venkatesh

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is a data type in Python? Select multiple answers.

int

words

string

decimals

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following create an empty dictionary (D)?

D = dict()

D = ()

D = []

D = {}

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

A dictionary is an example of a sequence ...

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

d = {"john":40, "peter":45}

d["john"]

a) 40

b) 45

c) “john”

d) “peter”

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [2445,133,12454,123], what is max(list1)?

a) 2445

b) 133

c) 12454

d) 123

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python statement?

>>>"abcd"[2:]

a) a

b) ab

c) cd

d) dc

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a=(1,2,3,4), a[1:-1] is _________

a) Error, tuple slicing doesn’t exist

b) [2,3]

c) (2,3,4)

d) (2,3)

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?