Search Header Logo

UNIT 1 PYTHON

Authored by Vishwanath Vishwanath

Computers

University

Used 1+ times

UNIT 1 PYTHON
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1 What is the correct way to print "Hello, World!" in Python?

print("Hello, World!")

printf("Hello, World!")

print(Hello, World!)

printf(Hello,World)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 2. What is the output of type(10.5) in Python?

int

float

double

long

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 3. Which of the following is NOT a valid variable name in Python?

my_var

123var

_var123

var_1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 4. What will be the output of print(5 // 2)?

2.5

2

3

2.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 5. Which operator is used for exponentiation (power) in Python?

**

power

%%

^

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  1. 6. The keyword used to define a function in Python is_

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 7. The __ operator is used to check if two values are equal.

==

=

equal

=!

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?

Discover more resources for Computers