1.What will be printed in that code?

Recap Sli 17

Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
Kadry Hanafy Mahmoud Kadry
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
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
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
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
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
Similar Resources on Wayground
15 questions
Python Programming Quiz

Quiz
•
12th Grade
8 questions
Mastering Excel Formulas and Functions

Quiz
•
12th Grade
8 questions
Introduction to Python Programming

Quiz
•
12th Grade
15 questions
Mastering SQL Concepts

Quiz
•
12th Grade
15 questions
Mastering Express JS Concepts

Quiz
•
12th Grade - University
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
9 questions
Condition Programming Quiz

Quiz
•
1st Grade - University
15 questions
module 0

Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade