Python practice

Python practice

Professional Development

20 Qs

quiz-placeholder

Similar activities

OT K2 L3 tin hoc

OT K2 L3 tin hoc

Professional Development

18 Qs

Ch.8 - Introducing Python

Ch.8 - Introducing Python

6th Grade - Professional Development

20 Qs

2. Ayo Main Quiz Lagi

2. Ayo Main Quiz Lagi

University - Professional Development

20 Qs

Revisão Informática Básica

Revisão Informática Básica

Professional Development

20 Qs

GIT

GIT

Professional Development

15 Qs

Nivelamento - Lógica (python)

Nivelamento - Lógica (python)

Professional Development

20 Qs

1. Ayo Main Quiz

1. Ayo Main Quiz

University - Professional Development

16 Qs

Pre Test Fundamental Kotlin

Pre Test Fundamental Kotlin

Professional Development

20 Qs

Python practice

Python practice

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

Shashi Weerasooriya

Used 1+ 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

What is a correct syntax to output "hello world" in python

p("hello world")

print ("hello world")

echo "hello world"

echo("hello world")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Python code?

#thi is a comment

/*this is a comment*/

//this is a comment

@this is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is not a legal variable name?

my_var

Myvar

_myvar

My-var

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numerical value 5?

Both the other answers are correct

X=int(5)

X=5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for python file

.py

.pt

.pyt

.pyth

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the floating number 2.8?

Both the other answers are correct

X=2.8

X=float(2.8)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to output the type of a variable or object in Python?

print (type(x))

print(typeOf (x))

print (typeof(X))

print (typeof X)

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?