python quiz 1

python quiz 1

Professional Development

30 Qs

quiz-placeholder

Similar activities

WJEC Image Editing

WJEC Image Editing

KG - Professional Development

25 Qs

ICT

ICT

Professional Development

25 Qs

Materi NTM - PJJ BMN 2023

Materi NTM - PJJ BMN 2023

Professional Development

25 Qs

CAMP_CODING_SIMKESKHANZA

CAMP_CODING_SIMKESKHANZA

University - Professional Development

25 Qs

PAT ROBOTIC Elektronika Dasar 2019-2020

PAT ROBOTIC Elektronika Dasar 2019-2020

KG - Professional Development

25 Qs

MMSCI - Tema 3.- Ensamblaje de un  equipo microinformático

MMSCI - Tema 3.- Ensamblaje de un equipo microinformático

Professional Development

25 Qs

Quiz 3 REMEDIAL Selling HPE AI & As-a-Service Solutions Module 4

Quiz 3 REMEDIAL Selling HPE AI & As-a-Service Solutions Module 4

Professional Development

25 Qs

Principles of coding

Principles of coding

Professional Development

25 Qs

python quiz 1

python quiz 1

Assessment

Quiz

Computers

Professional Development

Easy

Created by

KEERTHI BADUGU

Used 15+ times

FREE Resource

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) --

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?