Which one of the following is correct way of declaring and initializing a variable, x with value 5?
Basic Python Coding
Quiz
•
Computers
•
11th - 12th Grade
•
Hard
choki dorji
Used 768+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is correct way of declaring and initializing a variable, x with value 5?
int x
x=5
int x=5
x=5
declare x=5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not valid variable name in Python?
_var
var_name
var11
11var
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is False?
Variable names can be arbitrarily long.
They can contain both letters and numbers.
Variable name can begin with underscore.
Variable name can begin with number.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print 10//3
3.5
3
1
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the operator means less than equal to ?
>
<
>=
<=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the correct output
PYn PYnat ive PYnativ
Yna PYnat tiv PYnativ
Yna PYnat tive PYnativ
Yna PYnat tive PYnative
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8. If, else and elif is used for…..
Selection
Indentation
printing
iteration
10 questions
python quiz
Quiz
•
6th Grade - Professio...
12 questions
Java Strings
Quiz
•
9th - 12th Grade
12 questions
Python Programming Basics
Quiz
•
7th - 11th Grade
12 questions
Project-Stem Unit 1 python coding
Quiz
•
9th - 12th Grade
20 questions
AQA GCSE Computer Science Paper 1
Quiz
•
9th - 11th Grade
20 questions
Python Programming Quiz
Quiz
•
9th Grade - University
20 questions
Python String
Quiz
•
12th Grade
15 questions
list in python
Quiz
•
10th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University