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
Perkakasan Komputer

Quiz
•
Professional Development
15 questions
Python Class 1

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
8 questions
Flutter_Q1 G4

Quiz
•
Professional Development
12 questions
OFFICE 365

Quiz
•
Professional Development
15 questions
PHP Tours & TCC #39 Apéro

Quiz
•
Professional Development
10 questions
PHP QUIZ-2

Quiz
•
Professional Development
10 questions
Corel Draw

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade