PYTHON QUIZ-1

PYTHON QUIZ-1

University

7 Qs

quiz-placeholder

Similar activities

Kuizi 1 - Python

Kuizi 1 - Python

10th Grade - University

11 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

10 Qs

Topic 3-2: Numerical Computation & Expression

Topic 3-2: Numerical Computation & Expression

University

12 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Python Quiz 1

Python Quiz 1

University

10 Qs

CodeTigers Python 101

CodeTigers Python 101

KG - Professional Development

10 Qs

Flask

Flask

University

11 Qs

Chapter 1: Python Overview

Chapter 1: Python Overview

University

10 Qs

PYTHON QUIZ-1

PYTHON QUIZ-1

Assessment

Quiz

Computers

University

Hard

Created by

ENDURO SRM

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the extension of Python file?

pt

py

pyt

ptn

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the mistake -

x = input()

print(x+1)

input is not type-casted

x is not put in quotes ("")

x was not declared

There is no error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be output of 7.5//3?

2.5

2.0

2

0

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be output of type(7.5//3)?

string

int

float

complex

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can we get square of a number x in Python?

x**2

x*2

x^2

Both A and B

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a valid variable name?

#Name

Name#

Name1

1Name

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

x = "World"

print("Hello",x)

HelloWorld

Hellox

Hello World

It will give error