Introduction To Python

Introduction To Python

University

20 Qs

quiz-placeholder

Similar activities

Computer Architecture Unit 3

Computer Architecture Unit 3

University

15 Qs

II MCA ASP.NET ONLINE QUIZ

II MCA ASP.NET ONLINE QUIZ

University

15 Qs

IT 209

IT 209

University

15 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

Quiz on neural network unit II

Quiz on neural network unit II

University

16 Qs

GIS Unit-1

GIS Unit-1

University

15 Qs

Introduction To Python

Introduction To Python

Assessment

Quiz

Computers

University

Hard

Created by

Rishabh Gupta

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

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?