100% found this document useful (1 vote)
98 views

Python Basics For 6th Grade

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
98 views

Python Basics For 6th Grade

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Basics for 6th Grade: Multiple

Choice Assessment
1. What is Python? B
a. A type of snake
b. A programming language
c. A computer brand
d. A math equation

2. Which symbol is used for comments in Python? C


a. //
b. /*
c. #
d. --

3. What is the correct way to print "Hello, World!" in Python? A


a. print("Hello, World!")
b. echo "Hello, World!"
c. console.log("Hello, World!")
d. System.out.println("Hello, World!")

4. Which of the following is NOT a data type in Python? D


a. Integer
b. Float
c. Boolean
d. Array

5. Which operator is used for exponentiation in Python? Don’t


know
a. ^
b. **
c. ^^
d. //

6. What is the correct way to create a variable named 'age' with


the value 12? C
a. variable age = 12
b. age == 12
c. age = 12
d. let age = 12

7. Which of the following is a correct way to create a list in


Python? C
a. list = (1, 2, 3, 4)
b. list = {1, 2, 3, 4}
c. list = [1, 2, 3, 4]
d. list = <1, 2, 3, 4>

8. What does the input() function do in Python? B


a. Prints text to the screen
b. Reads user input from the keyboard
c. Imports a module
d. Creates a new file

9. Which of these is NOT a valid variable name in Python? C


a. my_variable
b. _variable
c. 2variable
d. camelCase

10. Which of these is NOT a valid way to comment in Python? B


a. # This is a comment
b. """ This is a multi-line comment """
c. // This is a comment
d. ''' This is also a multi-line comment '''

11. What does the append() method do to a list in Python? B


a. Removes an item from the list
b. Adds an item to the end of the list
c. Sorts the list
d. Reverses the order of the list

12. What is the result of "Hello" + "World" in Python? A


a. HelloWorld
b. Hello World
c. "HelloWorld"
d. Error

You might also like