Search Header Logo

Pre - Qualifier Assessments - Python Training

Authored by training atomm

Professional Development

Professional Development

Used 1+ times

Pre - Qualifier Assessments - Python Training
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these data types does Python not natively support?

Lists

Tuples

Arrays

Dictionaries

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the output of the following code snippet:
print(type("Hello, World!"))

<class 'str'>

<class 'int'>

<class 'list'>

<class 'list'>

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following pseudocode?
Initialize x as 10;
If x is of type int,
print "Integer"
else
print "Not Integer"

Integer

Not Integer

Error

None

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Evaluate this pseudocode:
Set x = [1, 2, 3];
If x is a list, print length of x, else print "Not a list"

3

0

1

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default type of data returned by the input() function in Python 3.x?

int

string

boolean

list

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will be the output of
print("Python", "Programming", sep="-")

Python-Programming

Python Programming

PythonProgramming

Python,Programming

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Find the mistake:
user_input = input("Enter a number: ");
print("You entered: ", int(user_input))

Syntax error

No error

int() should be str()

input() function used incorrectly

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?