Basic Python

Quiz
•
Computers
•
Professional Development
•
Hard
Faiz keezhattil
Used 21+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of 33 == 33.0
False
True
33
None of the Above
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can we swap two numbers
a = 10
b = 20
in python without using third variable?
a = b
b = a
a,b = b,a
a=20,b=10
b = a
a = b
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following are valid ways to specify the string literal foo'bar in Python?
'foo''bar'
'foo'bar'
"foo'bar"
'foo'+'bar'
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
>>> print(r'foo\\bar\nbaz')
Which of the following is the correct output?
foo\\bar\nbaz
foo\bar\nbaz
foo\\barnbaz
foo\bar
baz
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a Python built-in function:
diff()
round()
isinstance()
map()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is false statement in python
int(144)==144
int('144')==144
int(144.0)==144
None of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output for −
'Hello world' [1:2]
Hello
e
world
Syntax error
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
IOT Introduction Quiz

Quiz
•
Professional Development
10 questions
Python Quiz

Quiz
•
Professional Development
9 questions
CSS and JQuery

Quiz
•
Professional Development
10 questions
Bundlers

Quiz
•
Professional Development
15 questions
JF UIT 2022 - Game 3

Quiz
•
Professional Development
10 questions
3.2 Manual Testing Quiz

Quiz
•
Professional Development
11 questions
Ansible part 2

Quiz
•
Professional Development
10 questions
Sw Development

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade