Python

Python

University

18 Qs

quiz-placeholder

Similar activities

Python if/else

Python if/else

University

20 Qs

Basic Python

Basic Python

University

20 Qs

conditional statements and loops

conditional statements and loops

University

16 Qs

PHP hypertext preprocessor

PHP hypertext preprocessor

University

20 Qs

1212 Midterm Review

1212 Midterm Review

University

20 Qs

BPP UNIT-1,2 AID

BPP UNIT-1,2 AID

University

20 Qs

Quiz 1-PBO

Quiz 1-PBO

University

20 Qs

Python Lists

Python Lists

University

20 Qs

Python

Python

Assessment

Quiz

Computers

University

Easy

Created by

jack skeleton

Used 3+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python uses ________________ to run scripts.

First compiler then interpreter

Both compiler and interpreter

Interpreter 

Compiler

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Interpreter ______________

Translates and runs the entire program at once

Runs the code statement by statement

Is very fast in comparison with compiler

None of above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about an algorithm? Choose the one(s) that apply:

Finite steps to solve a problem

Step by step instructions to solve a problem

Order of steps are important in writing an algorithm

All of above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct when you want to read a number from input in Python:

x = input()

x = print(‘Enter a number’)

x = int(input(“Enter x:”))

x = print(“Enter x”)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following list function?

Error. You can't use append twice on a list.

[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60, 60]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

[10, 20]


[] 

list index out of range

[20, 30]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

programming

ODU

CS115

xyz

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?