0% found this document useful (0 votes)
27 views

Chapter 1 Coding with Small Basic

Uploaded by

compsci909
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Chapter 1 Coding with Small Basic

Uploaded by

compsci909
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Learner Name: Grade :

-
A)

1. **What is the correct way to String


print "Hello, World!" in Python?** - B) Float
- A) `print("Hello, World!")` - C) Integer
- B) `echo("Hello, World!")` - D) List
- C) `println("Hello, World!")`

- D) `Print("Hello, World!")` 5. What symbol is used to start a


comment in Python?**

2. **Which of the following is a - A) `//`


valid variable name in Python?** - B) `#`
- A) `2nd_variable` - C) `/*`
- B) `secondVariable` - D) `--`
- C) `second-variable`

- D) `second variable`
Which of the following data types can store
multiple values?
3. What is the output of the  A) String
following code?  B) Integer
 C) List
x = 10
 D) Float
print(x + 5)

- A) `10`

- B) `15`

- C) `105`

- D) `None`

7. What library do you need to


import to use Turtle graphics in
4. Which data type is used to Python?**
represent a whole number in - A) `import graphics`
Python?**
- B) `import turtle` A) turtle.speed(0)

- C) `import turtlegfx` B) turtle.speed("fastest")

- D) `import draw` C) Both A and B

D)
turtle.set_speed("fastest")

9. What does the


turtle.circle(radius) function do?
8. What command would you use
A) Draws a circle with the
to move the turtle forward by
specified radius.
100 units?**
B) Moves the turtle in a circular
- A) `turtle.move(100)`
path.
- B) `turtle.forward(100)`
C) Creates a circular screen.
- C) `turtle.go(100)`
D) None of the above.
- D) `turtle.step(100)`

9. What command would you use


to change the turtle’s speed to
the fastest setting?

You might also like