PCEP-PREP QUIZ 2

PCEP-PREP QUIZ 2

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Cyber Security Asessment

Cyber Security Asessment

8th Grade

15 Qs

Comments in Python

Comments in Python

5th - 8th Grade

10 Qs

Microsoft Excel

Microsoft Excel

6th Grade - University

15 Qs

revision quiz

revision quiz

6th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Year 7 Historical development of Computers

Year 7 Historical development of Computers

7th Grade

10 Qs

Ethical Issues of I.T.

Ethical Issues of I.T.

7th - 8th Grade

11 Qs

PCEP-PREP QUIZ 2

PCEP-PREP QUIZ 2

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Magikid Chino Hills

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

Media Image

Which of the following are being used in this snippet of code?

Function Invocation

parameters

Return

Try and Catch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the main difference between tuples and list?

tuples have [] and list have ()

Tuples have () and list have []

tuples can be change and list cannot be changed

tuples cannot be changed and list can be changed

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do dictionaries in python differ from list and tuples?

Dictionaries are a combination of list and tuples

Dictionaries can be modified and also be allowed to not modify

Dictionaries are like a hash table, where there are key-value pairs

Dictionaries have 2 list within to be able to access both at same time

4.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

word = "Hello"

Which of the following will print 'll'?

print(word[2:3])

print(word[2:4])

print(word[-3:-1])

print(word['ll'])

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is the correct snippet of code for the function 'find'?

The function 'find' should be given a letter to find and a word to search within.

if char in word:

return True

else:

return False

while True:

find char in word

return True/False

if word has char:

return False

else:

return True

Return True;

Return False;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line has an error?

19

21

23

18

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a try and catch used in python?

It is like an if then else which shows our error if there is one and it does not

It is used to check if a snippet of code has an error and if it does it allows us to handle the error without terminating the program

it tries a snippet of code then it catches the value that it sends, similar as a return

It returns an error and terminates the program so we may identify what was the issue

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?