G12 Sem 2 T 3

G12 Sem 2 T 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

Mastering Python Basics

Mastering Python Basics

12th Grade

15 Qs

Python Kode String dan List

Python Kode String dan List

12th Grade

10 Qs

Quiz di Coding su Python

Quiz di Coding su Python

9th - 12th Grade

10 Qs

Technical Aptitude Challenge

Technical Aptitude Challenge

12th Grade

15 Qs

Binary, Decimal, Hexadecimal Knowledge

Binary, Decimal, Hexadecimal Knowledge

7th Grade - University

9 Qs

G12- Python Inputs and Exercises

G12- Python Inputs and Exercises

12th Grade - University

9 Qs

Quiz de Lógica em Python

Quiz de Lógica em Python

6th Grade - University

8 Qs

G9-Introduction to Python Selection

G9-Introduction to Python Selection

9th Grade - University

6 Qs

G12 Sem 2 T 3

G12 Sem 2 T 3

Assessment

Quiz

Information Technology (IT)

12th Grade

Easy

Created by

Ab Fil

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct way of declaring variable in python?

var x

int x

declare x

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct way of providing single line comment in python?

//comment text

#comment text

/*comment text*/

<!--comment text-->

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is valid variable naming in python?

7num

num 7

_7num

#num7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code shown?

15

105

"10+5"

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the error type in the code fragment shown?

Type Error

Name Error

Syntax Error

Invalid Indentation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code fragment shown?

01234

012345

1234

12345

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the if statement in Python?

To define a function

To declare variable

To create a loop

To execute conditional block of code

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?