Which of the following is a valid variable name in Python?

GirlsWhoML Workshop 0

Quiz
•
Computers
•
University
•
Medium
NOOR NABEELAK
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2name
_name
l-name
my name
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code?
x = 5
y = "5"
print(x + y)
10
55
error
5+5
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens when you assign x = y = z = 10 in Python?
x gets 10, but y and z remain None
x, y, and z all get 10
x gets 10, but y and z remain uninitialized
Syntax error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of type(10.0)
float
int
double
str
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct way to convert a string "25" to an integer?
float("25")
list("25")
str("25")
int("25")
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many times will the following loop execute?
for i in range(1, 5):
print(i)
2
3
4
5
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What keyword is used to skip an iteration in a loop?
continue
pass
skip
break
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Pointers

Quiz
•
University
20 questions
PHP First Internal Practical Viva

Quiz
•
University
16 questions
Quiz on List and Tuples

Quiz
•
University
15 questions
JavaScript

Quiz
•
University
15 questions
Python Workshop Day - 2

Quiz
•
University
23 questions
Java Array

Quiz
•
University
19 questions
C Language Array Quiz

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade