PROG2013_Quiz_Unit1a

PROG2013_Quiz_Unit1a

University

15 Qs

quiz-placeholder

Similar activities

แข่งขันcodingม.ปลาย

แข่งขันcodingม.ปลาย

12th Grade - University

15 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

SOAL IE

SOAL IE

University

12 Qs

Understanding Data Structures

Understanding Data Structures

University

12 Qs

PPL 223 - (QUIZ 3) Data Types and Structures

PPL 223 - (QUIZ 3) Data Types and Structures

University

15 Qs

Quiz Meet 1 Mini SC Programing

Quiz Meet 1 Mini SC Programing

University

10 Qs

2F-1 | Python Quiz | 14/10/2024

2F-1 | Python Quiz | 14/10/2024

University

20 Qs

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

PROG2013_Quiz_Unit1a

PROG2013_Quiz_Unit1a

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Lisa W

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you print the value stored in the variable message?

echo(message)

echo(message)

print(message)

message.print()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

y = 50

y = 100

print(y)

50

100

150

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following correctly assigns values to multiple variables in a single line?

a, b, c = 10, 20, 30

a = b = c = 10, 20, 30

a b c = 10, 20, 30

a, b, c == 10, 20, 30

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to assign the value 10 to a variable x?

x == 10

x = 10

x <- 10

x => 10

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the type() function do in Python?

Checks the syntax of a variable

Prints the content of a variable

Displays the data type of a variable

Converts the data type of a variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following code?

num1 = 15

num2 = 4

print(num1 * num2)

19

60

11

45

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly calculates 3 raised to the power of 4?

3 * 4

3 ** 4

pow(3, 4)

Both b and c

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?