
Data Analytics and Visualisation DAY - 2
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Microsoft LIET
Used 1+ times
FREE Resource
Enhance your content in a minute
53 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
Which of the following is NOT a valid data type in Python?
Integer
Float
Boolean
String (all uppercase)
Answer explanation
The string "string (all uppercase)" is not a valid data type in Python because Python's built-in string data type is case-sensitive and does not have a specific representation for strings written entirely in uppercase letters.
2.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
What operator is used for string concatenation in Python?
+
*
/
%
Answer explanation
The "+" operator is used for string concatenation in Python, allowing the combination of multiple strings into a single string.
3.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
What keyword is used to define a function in Python?
define
create
def
function
4.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
What does the print( ) function do in Python?
Stores Data in a variable
Displays output on the console
Reads data from a file
Performs calculations
5.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
How do you access the second element in a python list named data?
d a t a [ 1 ]
d a t a . a t ( 1 )
d a t a . g e t ( 2 )
d a t a ( i n d e x = 1 )
Answer explanation
You can access the second element in a Python list named "data" using indexing with square brackets like this: "data[1]". Python uses zero-based indexing, so the second element has an index of 1.
6.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
In Python, what is the term used to describe the process of executing code line by line?
Compilation
Execution
Iteration
7.
MULTIPLE CHOICE QUESTION
10 sec • 4 pts
The if statement allows you to execute code conditionally. The syntax includes an else statement. True or False?
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
Blockchain Quiz
Quiz
•
University
50 questions
PAS TIK SEMESTER GANJIL KELAS IX
Quiz
•
9th Grade - University
50 questions
MCTCC0113
Quiz
•
University
50 questions
Android Development Quiz
Quiz
•
University
50 questions
ICT 201-250
Quiz
•
University
50 questions
VIRUS AND ANTIVIRUS
Quiz
•
10th Grade - University
50 questions
RIA Revision for Class Test_Set 2
Quiz
•
University
48 questions
Audit Sistem Informasi Quiz UTS Bag_1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
