Computer Science Examination Paper A - Allowed Items

Computer Science Examination Paper A - Allowed Items

Assessment

Flashcard

Information Technology (IT)

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

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

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?