

Computer Science Examination Paper A - Allowed Items
Flashcard
•
Information Technology (IT)
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

41 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the output of `print(type(3.14))`?
Back
2.
FLASHCARD QUESTION
Front
Which keyword is used to define a function in Python?
Back
`def`
3.
FLASHCARD QUESTION
Front
What does the `range(1, 5)` function generate?
Back
'[1, 2, 3, 4]'
4.
FLASHCARD QUESTION
Front
Which of the following is NOT a valid variable name? my_var, _var, 3var, VarName
Back
3var
5.
FLASHCARD QUESTION
Front
What is the result of '"Hello" + "World"'?
Back
'HelloWorld'
6.
FLASHCARD QUESTION
Front
Which method is used to remove the last item from a list? Options: list.remove(), list.pop(), list.delete(), list.clear()
Back
list.pop()
7.
FLASHCARD QUESTION
Front
What does the 'len()' function do?
Back
Returns the number of items in an object
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?