Computer Science Examination Paper A - Allowed Items

Computer Science Examination Paper A - Allowed Items

Assessment

Flashcard

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Wayground 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?