Robotic Placement Test

Robotic Placement Test

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

SAS2 Informatika 7 2425

SAS2 Informatika 7 2425

8th Grade - University

35 Qs

Python Practice Test

Python Practice Test

12th Grade

40 Qs

Python Quiz

Python Quiz

9th Grade

41 Qs

7 кл-06

7 кл-06

7th Grade - University

38 Qs

Soal TEST

Soal TEST

12th Grade

35 Qs

INFORMATIKA

INFORMATIKA

10th Grade

45 Qs

Đề Cương HKII Tin 10

Đề Cương HKII Tin 10

10th Grade - University

36 Qs

Computer Science Quiz

Computer Science Quiz

9th Grade

40 Qs

Robotic Placement Test

Robotic Placement Test

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Huda Learns

Used 4+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a correct file extension for Python files?
.py
.java
.txt
.exe

Answer explanation

Python source files use the .py extension.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following code print? print("Hello, world!")
Hello, world!
hello, world!
Hello world
SyntaxError

Answer explanation

The print function outputs the exact string provided.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is NOT a valid Python variable name?
student_name
2ndPlace
height_cm
_total

Answer explanation

Variable names cannot start with a digit.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax to create a single-line comment in Python?
// comment
# comment
/* comment */
<!-- comment -->

Answer explanation

Python uses the # symbol for single-line comments.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type would the value 3.14 be in Python?
int
str
float
bool

Answer explanation

Numbers with a decimal point are floats.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of 5 ** 2 in Python?
7
10
25
32

Answer explanation

** is the exponentiation operator (5 squared = 25).

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to define a function in Python?
func
define
def
function

Answer explanation

Functions begin with the def keyword.

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?