CSE-8_DAUP_QUIZ-1

CSE-8_DAUP_QUIZ-1

University

20 Qs

quiz-placeholder

Similar activities

PYTHON FUNCTION

PYTHON FUNCTION

University

20 Qs

PYTHON PROGRAMMING Q4 FUNCTIONS

PYTHON PROGRAMMING Q4 FUNCTIONS

University

20 Qs

OOPS-1

OOPS-1

University

20 Qs

code trivia

code trivia

University

15 Qs

Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

OOPS quiz-1 PYTHON

OOPS quiz-1 PYTHON

University

19 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

ASK T2 - Kod Arahan (Python)

ASK T2 - Kod Arahan (Python)

7th Grade - University

20 Qs

CSE-8_DAUP_QUIZ-1

CSE-8_DAUP_QUIZ-1

Assessment

Quiz

Computers

University

Medium

Created by

ANIL PRATHIPATI

Used 2+ times

FREE Resource

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

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?