Day3 - Python STT

Quiz
•
Computers
•
Professional Development
•
Medium
ICT Academy of Kerala
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct operator for power(xy)?
X^y
X**y
X^^y
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of these is floor division?
/
//
%
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
Since “susan” is not a value in the set, Python raises a KeyError exception
It is executed fine and no exception is raised, and it returns None
Since “susan” is not a key in the set, Python raises a KeyError exception
Since “susan” is not a key in the set, Python raises a syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements create a dictionary?
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the code above is
Key Error
4
Math
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Assume the key is the student's id and the value is the grade. Which of the following code will get the grade of student id 102?
grades[102]
grades.get(102)
grades[2]
grades[3]
grades.key(102)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code above
3.9
4
Syntax error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Flutter Q_0

Quiz
•
Professional Development
12 questions
Kotlin Quiz 4

Quiz
•
Professional Development
14 questions
DECI - Week 12 - round

Quiz
•
Professional Development
10 questions
Python-Quiz-Basic-Datatypes

Quiz
•
12th Grade - Professi...
10 questions
Day 3

Quiz
•
Professional Development
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
8 questions
Floor e GetX

Quiz
•
Professional Development
15 questions
JavaScript Pass by value, Pass by Reference, Scope Hoisting

Quiz
•
Professional Development
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