python quiz 1

python quiz 1

Professional Development

30 Qs

quiz-placeholder

Similar activities

İnformatika Qəbul DİM 1

İnformatika Qəbul DİM 1

Professional Development

25 Qs

Ciência de Dados -  Informações e Dados

Ciência de Dados - Informações e Dados

Professional Development

25 Qs

CERI-ITLA

CERI-ITLA

10th Grade - Professional Development

25 Qs

FUNCTIONS - FILES - OOPs CONCEPTS

FUNCTIONS - FILES - OOPs CONCEPTS

Professional Development

25 Qs

WEB_qrup_imtahan_IT_1

WEB_qrup_imtahan_IT_1

Professional Development

25 Qs

Estructura Salarial

Estructura Salarial

Professional Development

25 Qs

Simply, Mauj...

Simply, Mauj...

5th Grade - Professional Development

25 Qs

FR-MPA.06-Network Administrator Madya (TEORI)

FR-MPA.06-Network Administrator Madya (TEORI)

University - 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?