Python

Python

University

10 Qs

quiz-placeholder

Similar activities

c# practice

c# practice

University

11 Qs

Compiler

Compiler

University

10 Qs

programming basic

programming basic

5th Grade - University

10 Qs

FDM 3D PRINTING AZLAN

FDM 3D PRINTING AZLAN

University

10 Qs

quiz

quiz

University

10 Qs

wp_js

wp_js

University

10 Qs

Day 1 Data Science Workshop Quiz

Day 1 Data Science Workshop Quiz

University

10 Qs

Module 1_Introduction to C Programming

Module 1_Introduction to C Programming

University

10 Qs

Python

Python

Assessment

Quiz

Engineering

University

Medium

Created by

py thon

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

.pp

.pt

.py

.pn

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct way to declare a Python variable?

var x = 5

#x = 5

$x = 5

x = 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = "John"

# is the same as

x = 'John'

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = 5

# is the same as

A = 5

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insert the missing part of the code below to output “SSIT".

__________ (“SSIT")

Print

Type

Write

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to define a Python comment:

'

//

#

/*

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a legal variable name?

my-var = 20

my_var = 20

Myvar = 20

_myvar = 20

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?