python quiz 1

python quiz 1

Professional Development

30 Qs

quiz-placeholder

Similar activities

PKP

PKP

Professional Development

25 Qs

Pretest Materi Bimtek

Pretest Materi Bimtek

Professional Development

25 Qs

Data Analysis Using Excel Test

Data Analysis Using Excel Test

Professional Development

25 Qs

Reckon your Techie Skills-Day3 (DATASTRUCTURES)

Reckon your Techie Skills-Day3 (DATASTRUCTURES)

Professional Development

25 Qs

CONTROL STRUCTURES - LIST

CONTROL STRUCTURES - LIST

Professional Development

25 Qs

UA1_SOR

UA1_SOR

Professional Development

25 Qs

excel / elektronik hesaplama

excel / elektronik hesaplama

Professional Development

25 Qs

Preprocessor Directives

Preprocessor Directives

Professional Development

25 Qs

python quiz 1

python quiz 1

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

KEERTHI BADUGU

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print(2 ** 3);

a) 5


b) 6

c) 8

d) 9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

a) 2variable


b) variable_name

c) variable-name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

a) .pyth


b) .pt

c) .py

d) .pyt

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a function in Python?

a) func


b) define

c) def

d) function.def

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print("Hello" + "World");

a) Hello World


b) HelloWorld

c) Hello+World

d) Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a) List


b) Dictionary

c) Tuples

d) Class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert comments in Python code?

a) //


b) #

c) /* */

d) --

Access all questions and much more by creating a free account

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?