Introduction To Python

Introduction To Python

University

20 Qs

quiz-placeholder

Similar activities

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Python Quiz

Python Quiz

University

15 Qs

Spreadsheet Fundamentals - Quiz2

Spreadsheet Fundamentals - Quiz2

University

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

ITE TEST 2

ITE TEST 2

University

20 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Introduction To Python

Introduction To Python

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Rishabh Gupta

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?