Search Header Logo

CLASS 8 - VIVA 2024-25

Authored by Jyotsna Verma

Computers

8th Grade

CLASS 8 - VIVA 2024-25
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

Q. Extension of Python file is _______________.

.python
.py
.pyn
.pyt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q. Which of the following statements is NOT TRUE about variables in Python?

They are blocks of memory that store values
While creating a variable you are not required to mention the data type
Name given to a variable is known as identifier
Variable names are not case sensitive

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Q. Choose the correct set of data type for the following variables.

a. String b. Int
a. Text b. Int
a. String b. Number
a. Text b. Number

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q. If num%2 ==0: will return TRUE when

num is equal to 2
num is equal to 0
remainder after dividing num by 2 is 0
remainder after dividing num by 0 is 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Q. Choose the correct reason why the following statement is incorrect.

Variable name is incorrect
eval() function is missing in the statement
== sign should be used instead of = sign
Python is case sensitive. It does not understand commands written in uppercase.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Q. What will be the output of the following code?

Display numbers from 1 to 10
Display numbers from 2 to 9
Display numbers from 2 to 10
Display numbers from 1 to 9

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q. Which is the correct command to display a '@' 5 times using string operator.

print("@",5)
print("@", 5 times)
print("@"+5)
print("@"*5)

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?