Python test

Python test

University

17 Qs

quiz-placeholder

Similar activities

Python Prowess

Python Prowess

University

20 Qs

Type data python

Type data python

9th Grade - University

15 Qs

BOP-1

BOP-1

University - Professional Development

15 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

Python Basics

Python Basics

KG - University

15 Qs

Programming in Python

Programming in Python

University

20 Qs

PPS PYTHON QUIZ

PPS PYTHON QUIZ

University

20 Qs

C programming-1

C programming-1

University

13 Qs

Python test

Python test

Assessment

Quiz

Computers

University

Medium

Created by

madhu rani

Used 2+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Extension of python is

. python

.py

.p

.pt

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will be the value of the following Python expression?

4 + 3 % 5

7

4

2

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a core data type in Python programming?

a) Tuples

b) Lists

c) Class

d) Dictionary

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

a={1:"A",2:"B",3:"C"}

b={4:"D",5:"E"}

a.update(b)

print(a)

a) {1: ‘A’, 2: ‘B’, 3: ‘C’}

b) Method update() doesn’t exist for dictionaries

c) {1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’, 5: ‘E’}

d) {4: ‘D’, 5: ‘E’}

5.

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

6.

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”

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the “hello” +1+2+3?

a) hello123

b) hello

c) Error

d) hello6

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?