EXAM PREP ITS PYTHON DAY1

EXAM PREP ITS PYTHON DAY1

Professional Development

23 Qs

quiz-placeholder

Similar activities

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

RAS QUIZ

RAS QUIZ

Professional Development

20 Qs

Jadi Programmer | Kampung Koding

Jadi Programmer | Kampung Koding

10th Grade - Professional Development

20 Qs

unit test i sem jamia

unit test i sem jamia

Professional Development

20 Qs

AWS SAA - Aquecimento

AWS SAA - Aquecimento

Professional Development

20 Qs

2º-DAM-Evaluación Inicial-HLC

2º-DAM-Evaluación Inicial-HLC

Professional Development

20 Qs

Computer Basics

Computer Basics

11th Grade - Professional Development

20 Qs

Level 2 Digital Technologies

Level 2 Digital Technologies

8th Grade - Professional Development

18 Qs

EXAM PREP ITS PYTHON DAY1

EXAM PREP ITS PYTHON DAY1

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Rainusa Indo

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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?