Recap Sli 17

Recap Sli 17

12th Grade

10 Qs

quiz-placeholder

Similar activities

Aktivitas Informatika 1

Aktivitas Informatika 1

9th - 12th Grade

13 Qs

Quiz Regresi Linear dan Algoritma

Quiz Regresi Linear dan Algoritma

4th Grade - University

15 Qs

Quiz sobre React Native

Quiz sobre React Native

12th Grade

15 Qs

IST-Unit 1: Tech&BusinessComputingEthics&Safety&CTSO

IST-Unit 1: Tech&BusinessComputingEthics&Safety&CTSO

9th - 12th Grade

12 Qs

Структурированный тип данных массив

Структурированный тип данных массив

10th Grade - University

11 Qs

G4-Microprocessors and Their Uses

G4-Microprocessors and Their Uses

4th Grade - University

15 Qs

Konversi Bilangan

Konversi Bilangan

10th Grade - University

15 Qs

CPU Components Quiz

CPU Components Quiz

10th Grade - University

14 Qs

Recap Sli 17

Recap Sli 17

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Medium

Created by

Kadry Hanafy Mahmoud Kadry

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?