Search Header Logo

CSE-8_DAUP_QUIZ-1

Authored by ANIL PRATHIPATI

Computers

University

Used 2+ times

CSE-8_DAUP_QUIZ-1
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

Which of the following best describes the origin of Python?

Developed primarily for web development in the late 1990s

Created as a descendant of the C programming language for system programming

Designed by Guido van Rossum in the late 1980s as a general-purpose programming language

Developed as a proprietary language for artificial intelligence research

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python feature enforces code block structure and readability without explicit braces or keywords?

Semicolons

Indentation

Parentheses

Curly braces

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When running a Python script from the command line, what is the correct command syntax?

python

run python

execute

start python

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid Python keyword?

lambda

yield

function

global

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is the output of the expression: 5 // 2 ?

2.5

3

2

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which control flow statement allows you to skip the current iteration and continue with the next one?

break

continue

pass

return

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python data structure is immutable and can be used as keys in dictionaries?

List

Tuple

Set

Dictionary

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?