Search Header Logo

Niam_Class2_Quiz

Authored by Deepika A

Computers

9th Grade

Used 1+ times

Niam_Class2_Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can "Hello World" can be displayed in python ?

console.log('Hello World')
print('Hello World')
print('Hello')
echo 'Hello World'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read input from the user in Python?

input()

get()

scan()

read()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to get input if I am adding 2 numbers in python ?

num1 = input('Enter first number: '); num2 = input('Enter second number: ');

num1 = int(input('First number: ')); num2 = int(input('Second number: '));

num1 = float(input('Enter number: '));

num1 = float(input('Enter first number: ')); num2 = float(input('Enter second number: '));

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for addition in Python?

-

+

*

/

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in python ?

A variable in Python is a named reference to a value stored in memory.
A variable in Python is a command used to execute code.
A variable in Python is a fixed value that cannot change.
A variable in Python is a type of function.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a variable in Python ?

Use the syntax: variable_name = value.
let variable_name = value
set variable_name to value
variable_name : value

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?