
CAT 2 Quiz

Quiz
•
Computers
•
University
•
Medium
A M Abirami
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the correct operator for power(xy) ?
x ** y
x ^ y
x ^^ y
x * y
2.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
x = 5
y = 2
print(x / y)
print(x // y)
print(x % y)
print(x ^ y)
2.5
2
1
7
2
2.5
1
7
2.5
2
7
1
2.5
2
1
0
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
str = 'hello'
print(str[:2])
print(str[2:])
print(str[2:4])
print(str[-1])
he
llo
ll
o
he
llo
ll
h
he
llo
llo
o
he
llo
ll
oellh
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What error occurs when you execute?
rose = lotus
TypeError
NameError
SyntaxError
ValueError
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What error occurs when you execute?
rose = 'lotus'
NameError
TypeError
No Error
SyntaxError
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
list = [ 1, '2', [3]]
print(type(list))
print(type(list[0]))
print(type(list[1]))
print(type(list[2]))
<class 'list'>
<class 'int'>
<class 'str'>
<class 'list'>
<class 'list'>
<class 'int'>
<class 'int'>
<class 'list'>
list
int
str
list
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of the expression:
float(4+int(2.39)%2)
4.0
4
5
5.0
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Arrays

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
15 questions
1st session

Quiz
•
University
10 questions
Python Basics

Quiz
•
12th Grade - University
12 questions
JavaScript Quiz

Quiz
•
University
10 questions
Listen in Python

Quiz
•
University
13 questions
HTML тегтері

Quiz
•
1st Grade - University
15 questions
Round 2 Debug-The-Code

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University