EXAM PREP ITS PYTHON DAY1

EXAM PREP ITS PYTHON DAY1

Professional Development

23 Qs

quiz-placeholder

Similar activities

Python - List (metods)

Python - List (metods)

Professional Development

20 Qs

TN +2 CSC  - LESSON 1 TO 10 & 12

TN +2 CSC - LESSON 1 TO 10 & 12

Professional Development

25 Qs

Python - CDT

Python - CDT

Professional Development

20 Qs

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

IT Concepts and Terminology  Data 1.0 - Storage 2.0

IT Concepts and Terminology Data 1.0 - Storage 2.0

Professional Development

20 Qs

Python Programming Fundamental

Python Programming Fundamental

Professional Development

20 Qs

15 days of code quiz 2

15 days of code quiz 2

11th Grade - Professional Development

22 Qs

Season 1 #Spaic Python Weekly Quiz

Season 1 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

EXAM PREP ITS PYTHON DAY1

EXAM PREP ITS PYTHON DAY1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Rainusa Indo

Used 1+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Memanggil fungsi gross_salary() akan menghasilkan error sintaks.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Memanggil fungsi gross_salary(pieces=500, pieces_rate=4) akan mengembalikan nilai 2000.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Review the following code segment

product = 2

n = 5

while (n != 0):

product *= n

print (product)

n = 1

if n == 3:

break

 

How many lines of output does the code print?

1

10

2

No Output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You develop a Python application for your company.

You want to add notes to your code so other team members will understand it.

What should you do?

Place the notes after // on any line.

Place the notes within <!-- and --> in any code segment.

Place the notes within /* and */ in any code segment

Place the notes after # on any line.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which code segment should you use at line 03?

while (index <= 10):

while (index < 10):

while index < 10:

while index <= 10:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which code segment should you use at line 06?

if numbers[index] = 6:

if numbers[index] == 6:

if numbers(index) == 6:

if numbers(index) = 6:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Review the following code:

 

x = "apples"

y = "oranges"

z = "bananas"

data = "{1} and {0} and {2}"

print(data.format(z, y, x))

 

What is the output of the print statement?

Bananas and Oranges and Apples

Apples and Oranges and Bananas

Oranges and Apples and Bananas

Apples and Bananas and Oranges

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?