G12 Sem 2 T 3

G12 Sem 2 T 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

JavaScript Basics Quiz

JavaScript Basics Quiz

9th - 12th Grade

9 Qs

Introduction To Programming - Lesson Exception Handling

Introduction To Programming - Lesson Exception Handling

11th Grade - University

13 Qs

Quiz sobre el ornitorrinco y la programación

Quiz sobre el ornitorrinco y la programación

8th Grade - University

15 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Kiến thức về hàm print() trong Python

Kiến thức về hàm print() trong Python

2nd Grade - University

9 Qs

Video Game Design - Quiz4 -L5 -P

Video Game Design - Quiz4 -L5 -P

9th - 12th Grade

10 Qs

C++ Quiz 1

C++ Quiz 1

12th Grade

15 Qs

Condition Programming Quiz

Condition Programming Quiz

1st Grade - University

9 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?