Python practice

Python practice

Professional Development

20 Qs

quiz-placeholder

Similar activities

Kodlama ve Bilişim

Kodlama ve Bilişim

Professional Development

15 Qs

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Introduction to Machine Learning

Introduction to Machine Learning

University - Professional Development

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

MTA - Microsoft Operating Systems Review 1

MTA - Microsoft Operating Systems Review 1

10th Grade - Professional Development

20 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Pascal (Тест 3)

Pascal (Тест 3)

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?