Recap Sli 17

Recap Sli 17

12th Grade

10 Qs

quiz-placeholder

Similar activities

Condition Programming Quiz

Condition Programming Quiz

1st Grade - University

9 Qs

Exploring Web Design Quiz

Exploring Web Design Quiz

9th - 12th Grade

6 Qs

Python Gaming L3

Python Gaming L3

9th - 12th Grade

10 Qs

Module 3 - Unity Scripting Basics

Module 3 - Unity Scripting Basics

9th - 12th Grade

15 Qs

Review loops

Review loops

8th Grade - University

12 Qs

G12- Python Strings Quiz

G12- Python Strings Quiz

12th Grade - University

9 Qs

Kiến thức về hàm print() trong Python

Kiến thức về hàm print() trong Python

2nd Grade - University

9 Qs

HTML QUIZ

HTML QUIZ

6th Grade - University

13 Qs

Recap Sli 17

Recap Sli 17

Assessment

Quiz

Information Technology (IT)

12th Grade

Medium

Created by

Kadry Hanafy Mahmoud Kadry

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

1.What will be printed in that code? 

a) 5

b) 9

c) 0

d) 10

2.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

2.How could we iterate on the letters of the string “hello”? 

a) ‘for i in range("hello")’

b) ‘for i in range(5)’

c) ‘for i in "hello" ’

d) ‘while i < "hello" ’

3.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

3.What is written between brackets in the function’s definition and do they act as placeholders for values passed when the function is called?

a) Arguments

b) Parameters

c) Return Values

d) None of the Above

4.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

What does this function do? 

a) It returns the index of the first occurrence of ‘x’ in ‘y’.

b) It returns the index of the last occurrence of ‘x’ in ‘y’.

c) It returns the number of the occurrences of ‘x’ in ‘y’.

d) It returns the length of the string ‘y’.

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

What does this function calculate​?

a) x ** 2

b) x*(x-1)/2

c) x + 1

d) factorial of ‘x’

6.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

the output of this code?

•Answer:

16,12

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.What is the keyword ‘break’ used for? 

Answer: to exit the loop immediately.

True

False

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?

Discover more resources for Information Technology (IT)