Data Analytics and Visualisation DAY - 2

Data Analytics and Visualisation DAY - 2

University

53 Qs

quiz-placeholder

Similar activities

Pre-Test Praktikum

Pre-Test Praktikum

University

50 Qs

WP Part 3

WP Part 3

12th Grade - Professional Development

52 Qs

Python_Final Quiz

Python_Final Quiz

University

50 Qs

NI MDW104 MIDTERM EXAMINATION

NI MDW104 MIDTERM EXAMINATION

University

50 Qs

Soal Ujian UTS- Perancangan dan Pemrograman Web-2022-1

Soal Ujian UTS- Perancangan dan Pemrograman Web-2022-1

University

50 Qs

Lesson 1 - Quiz

Lesson 1 - Quiz

University

50 Qs

Quiz Susulan Latihan Soal-Soal UTS Perancangan & Pemrograman Web

Quiz Susulan Latihan Soal-Soal UTS Perancangan & Pemrograman Web

University

50 Qs

Python PCAP 31-03

Python PCAP 31-03

University

50 Qs

Data Analytics and Visualisation DAY - 2

Data Analytics and Visualisation DAY - 2

Assessment

Quiz

Computers

University

Medium

Created by

Microsoft LIET

Used 1+ times

FREE Resource

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

Media Image

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

Media Image

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

Media Image


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?

Interpretation

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?

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?