PYTHON-MCQ

PYTHON-MCQ

University

20 Qs

quiz-placeholder

Similar activities

Tuần 11 - Lớp 4

Tuần 11 - Lớp 4

4th Grade - University

20 Qs

Działania na potęgach

Działania na potęgach

7th Grade - University

20 Qs

โจทย์ทบทวน เรื่องลำดับอนันต์และอนุกรมอนันต์

โจทย์ทบทวน เรื่องลำดับอนันต์และอนุกรมอนันต์

4th Grade - Professional Development

21 Qs

PTS MTK X PG

PTS MTK X PG

University - Professional Development

15 Qs

Checking Solutions for Inequalities

Checking Solutions for Inequalities

6th Grade - University

15 Qs

Ôn tập 1

Ôn tập 1

3rd Grade - University

20 Qs

PROPIEDADES DE LA SUMA

PROPIEDADES DE LA SUMA

1st Grade - University

20 Qs

STS 1 Matematika Kelas 6

STS 1 Matematika Kelas 6

6th Grade - University

20 Qs

PYTHON-MCQ

PYTHON-MCQ

Assessment

Quiz

Mathematics

University

Practice Problem

Medium

Created by

Senthil R

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function in Python language?

Function

Fun

Define

def

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?

String

Integer

List

Tuple

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is a built-in function in python?

factorial()

print()

seed()

sqrt()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression if x=56.236?

print("%.2f"%x)

56.236

56.23

56.00

56.24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

len(["hello",2, 4, 6])

error

6

4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("abc. DEF".capitalize())

Abc. def

abc. def

Abc. Def

ABC. DEF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

  1. >>>list1 = [1, 3]

  2. >>>list2 = list1

  3. >>>list1[0] = 4

  4. >>>print(list2)

[1, 4]

[1, 3, 4]

[4, 3]

[1, 3]

Create a free account and access millions of resources

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?