Introduction To Python

Quiz
•
Computers
•
University
•
Hard
Rishabh Gupta
Used 28+ 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
Similar Resources on Wayground
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
20 questions
Introduction to Python

Quiz
•
University
20 questions
Basic Python

Quiz
•
University
20 questions
Python Basics 1

Quiz
•
University
15 questions
python basics

Quiz
•
11th Grade - University
15 questions
Python Programming - Introduction

Quiz
•
University
20 questions
Python Programming

Quiz
•
University
15 questions
Py-Hackathon - Week 2 - Day 2

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade