Python 1

Python 1

University

20 Qs

quiz-placeholder

Similar activities

Introduction to Python

Introduction to Python

University

20 Qs

Programming in Python

Programming in Python

University

20 Qs

Python Basics

Python Basics

KG - University

15 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

Basic Python

Basic Python

University

20 Qs

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

python basics

python basics

11th Grade - University

15 Qs

Python 1

Python 1

Assessment

Quiz

Computers

University

Medium

Created by

Mahesh Shinge

Used 7+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to indicate comments in Python?

//

#

/

<!--

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a variable in Python?

variable_name = value

variable_name <- value

value = variable_name

variable_name : value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, variables are:

Declared with a specific data type

Implicitly typed

Declared using the 'var' keyword

Only allowed in functions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid variable name in Python?

_myVar

123_var

My-Var

myVar2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this code?

5

10

15

The code will raise an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the data type of the variable in this code?

int

float

str

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this code?

Greater than 5

Less than or equal to 5

10

The code will raise an error

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?