Introduction To Python

Quiz
•
Computers
•
University
•
Hard
Rishabh Gupta
Used 29+ 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
1st Year quiz

Quiz
•
University
25 questions
PYTHON PROGRAMMING STRING Q6

Quiz
•
University
20 questions
ITIPT01 Quiz No 1

Quiz
•
University
20 questions
GirlsWhoML Workshop 0

Quiz
•
University
20 questions
Tkinter Quiz

Quiz
•
University
16 questions
Python Workshop 1 review

Quiz
•
University
20 questions
JS Skill Assessment (Internal Exam)

Quiz
•
University
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University