What is the result of the following expression multiplying an integer with a float?
5*1.5
Python and data processing test
Quiz
•
Computers
•
University
•
Easy
Tibor Tajti
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following expression multiplying an integer with a float?
5*1.5
5
10
7.5
7
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the expression?
5*1.0
5
5.0
An error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the next expression?
"V"+1
The value of the variable V plus 1
"V1"
An error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the expression?
3*[1, 2, 3]
[3, 6, 9]
[ [1, 2, 3], [1, 2, 3], [1, 2, 3] ]
[1, 2, 3, 1, 2, 3, 1, 2, 3, ]
An error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume that we have a list variable:lst=[1,2,3,4]
How can we add the value 5 to the end of the list?
lst.add(5)
lst.append(5)
5.add(lst)
5.append(lst)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The v[4]='c' statement can work if the type of the v variable is:
string
list
tuple
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will write the following code to the output?
for i in range(1,10):
print(i*i)
1
4
9
16
25
36
49
64
81
1
4
9
16
25
36
49
64
81
100
Nothing
An error
20 questions
Python
Quiz
•
University
16 questions
Searching & Sorting Algorithms
Quiz
•
10th Grade - University
14 questions
Data Structure
Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py
Quiz
•
University
15 questions
Python Basics
Quiz
•
University
12 questions
BJC Unit 2 Concepts Review
Quiz
•
10th Grade - University
15 questions
CSE 102 Exam 2 Practice
Quiz
•
University
20 questions
Data Structure
Quiz
•
University
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