Search Header Logo

Assessment Quiz 1

Authored by Shivam Mishra

Computers

7th - 12th Grade

Used 2K+ times

Assessment Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?