What is output of this code:
int x = 5.2
print(x)
Quiz 1.2
Quiz
•
Computers
•
Professional Development
•
Easy
Mohand Mahmoud
Used 1+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is output of this code:
int x = 5.2
print(x)
5
5.2
5.0
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
x = 14.9;
what is the type of variable x?
int
float
double
str
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
a = 9;
b = 5;
print("a>b");
what is the output of this code?
True
False
a>b
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Type casting is when you assign a value of one data type to another type??
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you start writing an if statement ?
if x > y:
if x>y {
if x > y then:
if (x > y)
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
what is the output of this code?
name="Ali"
out = name +"Ahmed"
print(out)
Ahmed
Ali
Ali Ahmed
Erorr
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
a = 9
b = 5
print(a>b and 4>7)
what is the output of this code?
9>5 and 4>7
a>b and 4>7
True
False
30 questions
Guia Examen Java - TUC
Quiz
•
Professional Development
36 questions
unit 8 Review csa test
Quiz
•
Professional Development
35 questions
Python
Quiz
•
Professional Development
30 questions
C BASICS
Quiz
•
Professional Development
30 questions
Python - Basic Data, Structure, and Concepts
Quiz
•
Professional Development
30 questions
Blind Coding Round 1
Quiz
•
Professional Development
27 questions
Flapo SRE Quizzzz
Quiz
•
Professional Development
34 questions
Friday Pop Quiz 5
Quiz
•
Professional Development
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