AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

8th - 10th Grade

19 Qs

quiz-placeholder

Similar activities

Python Revision

Python Revision

8th Grade

15 Qs

Year 8 Microbit quiz

Year 8 Microbit quiz

8th - 9th Grade

20 Qs

Data Type

Data Type

7th - 12th Grade

20 Qs

AP CS A Unit 3

AP CS A Unit 3

9th - 12th Grade

20 Qs

Basic Python Key Terms

Basic Python Key Terms

6th - 8th Grade

20 Qs

AP CSA Unit 2.6-2.9

AP CSA Unit 2.6-2.9

10th - 12th Grade

22 Qs

MAC - Unit 2

MAC - Unit 2

9th - 12th Grade

18 Qs

Python

Python

9th Grade

15 Qs

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

Assessment

Quiz

Computers

8th - 10th Grade

Hard

Created by

Mr Ling-Winston

Used 7+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function gives a random integer which is between 100 and 200 and divisible by 3?
random.randrange(100, 200, 3)
random.randint(100, 200, 3)
random.random(100, 200, 3)
yuvraj.yavraj(100, 200, 3)

2.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

What is the function to generate a hex token of 32 bytes?
secret.token_hex(32)
secret.token_hex32
secret.hex_32
secret_hex(32)

3.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Random = random.randint(1,6). What are the chances of Random being 4?

4.

OPEN ENDED QUESTION

20 sec • 1 pt

List = ["Apple", "Apple", "Banana", "Pear"]. Fruit = random.choice(list). Print(Fruit). What are the chances of the fruit being an apple?

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

list = [1,2,3,4]. Newlist = random.shuffle(list). Print(newlist). What happens?
[1,2,3,4]
[1,4,3,2]
Nothing
Error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the function of string handling operations
To handle heavy string operations
To make strings longer
To stop alex being a fat melt
To change type of variable used

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

STRING_TO_INT("84") evalautes to...
8.4
"84"
84
"8.40"

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?