PythonQuiz1

PythonQuiz1

University

20 Qs

quiz-placeholder

Similar activities

Color Theory (Graphic Design Vers)

Color Theory (Graphic Design Vers)

University

16 Qs

TOPIC 1 : DVG20303

TOPIC 1 : DVG20303

University

15 Qs

Building Laws Quiz 3- PD1096

Building Laws Quiz 3- PD1096

KG - Professional Development

15 Qs

UI UX Redesign

UI UX Redesign

University

15 Qs

Two-View Drawings

Two-View Drawings

University

20 Qs

Business Interior Design

Business Interior Design

University

17 Qs

Line Balancing Algorithm

Line Balancing Algorithm

University

15 Qs

Advertising Quiz

Advertising Quiz

University

18 Qs

PythonQuiz1

PythonQuiz1

Assessment

Quiz

Design

University

Hard

Created by

HOD Design

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declarations is incorrect in python language?

Abc = 4,000,000

A B C D = 5000 4000 12000 9000

A B C D = 5000, 4000, 12000, 9000

A_B_C_D = 15,000,000

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Study the following code:

>>>"foobar"[3:]

What will be the output of this code?

foobar

foo

bar

None of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

names1 = ['Amir', 'Bala', 'Charlie']

names2 = [name.lower() for name in names1]

print(names2[2][0])

None

a

b

c

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT the python IDE.

Jupyter notebook

Spyder

Anaconda

Numpy

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of PVM (Python Virtual Machine)

It translates source code into byte code line by line

It translates source code into byte code at once

It translates bytecode into machine code line by line

It translates bytecode into machine code at once

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of following code segment:

X = 2

for z in range(X, 4*X, X):

print(z, end=', ')

2, 3, 4, 5, 6, 7, 8,

2, 4, 6, 8,

2, 4, 6,

Table of 2

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

The part of a program that uses a function is called the(Choose 2)

user

caller

callee

driver

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?