I Years_Python

Quiz
•
Other
•
Professional Development
•
Hard
SHANMUGAPRIYA.P MCE-LECT/IT
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to declare a variable in Python?
int x = 5;
x = 5
x := 5
x -> 5
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid data type in Python?
int
float
char
str
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(type(3.14))?
<class 'int'>
<class 'float'>
<class 'double'>
<class 'str'>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to define a function in Python?
def
function
func
define
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of print("Hello" + "World")?
HelloWorld
Hello World
Hello+World
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the len() function in Python?
To convert a string to lowercase
To return the length of an object
To check if a variable is defined
To calculate the square root
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of print(2 ** 3)?
6
8
9
Error
Create a free account and access millions of resources
Similar Resources on Wayground
46 questions
369-668a340acdad4bdec639b596

Quiz
•
Professional Development
52 questions
Evaluación Técnica del Cargo

Quiz
•
Professional Development
50 questions
Terrestrial and Coastal Navigation II

Quiz
•
Professional Development
50 questions
MICROSOFT ACCESS

Quiz
•
Professional Development
46 questions
Domain 4: Web Applications

Quiz
•
Professional Development
45 questions
Week 2 -Process check

Quiz
•
Professional Development
50 questions
Career Paddies Quiz 9

Quiz
•
Professional Development
55 questions
*Computer Science Test*

Quiz
•
KG - Professional Dev...
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