Introduction To Python

Introduction To Python

University

20 Qs

quiz-placeholder

Similar activities

Grade 7 Python Programming Quiz

Grade 7 Python Programming Quiz

7th Grade - University

20 Qs

Python :: String review

Python :: String review

University

20 Qs

Python Variables

Python Variables

University

15 Qs

/Python_Quiz\

/Python_Quiz\

KG - Professional Development

20 Qs

Python2

Python2

8th Grade - University

15 Qs

Python Basics 1

Python Basics 1

University

20 Qs

Introduction to Python

Introduction to Python

University

20 Qs

Basic Python

Basic Python

University

20 Qs

Introduction To Python

Introduction To Python

Assessment

Quiz

Computers

University

Hard

Created by

Rishabh Gupta

Used 25+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to insert comments in Python ?

# this is a comment

// this is a comment

/* this is a comment */

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a numeric variable age with a value of 10

age = 10

int age = 10

age = "10"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct extension for python files ?

.py

.pyth

.python

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the below operators can be used to compare two numbers

==

/

=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a block of code defined in Python ?

with indentation

with paranthesis

with curly braces

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is true about comments

Comments are used by programmers to document the code

# is used to create a comment in python

''' can be used to create a comment in python

/* */ can be used to crate a comment in python

Python ignores comments.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

age = '5'


In the code above, age is a

string

integer

floating point

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?