Assessment Quiz 1

Assessment Quiz 1

7th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

GRADE 9 PART B UNIT 5 INTRODUCTION TO PYTHON

GRADE 9 PART B UNIT 5 INTRODUCTION TO PYTHON

9th Grade

10 Qs

Class VIII_Basic Python Programming Quiz

Class VIII_Basic Python Programming Quiz

8th Grade

10 Qs

Python Data Types and Arithmetic Quiz

Python Data Types and Arithmetic Quiz

8th Grade

7 Qs

Python

Python

6th - 8th Grade

10 Qs

Python quiz

Python quiz

10th Grade

13 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

JC Assessment

JC Assessment

4th - 7th Grade

10 Qs

Python Beginner

Python Beginner

12th Grade

10 Qs

Assessment Quiz 1

Assessment Quiz 1

Assessment

Quiz

Computers

7th - 12th Grade

Easy

Created by

Shivam Mishra

Used 2K+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Python?

p("Hello World")

print("Hello World")

echo("Hello World");

echo "Hello World"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Python code?

#This is a comment

/*This is a comment*/

//This is a comment

++ This is comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a legal variable name?

my-var

Myvar

_myvar

my_var

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

x = int(5)

Both the other answers are correct

x = 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By default input() function takes values in which data type:

float

int

string

char

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By default if we don't use 'end' parameter the print() function prints after each

word

line

tab

column

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String is always put inside

bracket

double inverted commas

single inverted commas

either single or double inverted commas

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?