CSE-8_DAUP_QUIZ-1

CSE-8_DAUP_QUIZ-1

University

20 Qs

quiz-placeholder

Similar activities

15 days of code quiz 2

15 days of code quiz 2

11th Grade - Professional Development

22 Qs

CodeHS Basic Data Structures in Python

CodeHS Basic Data Structures in Python

University

20 Qs

Python Programming - Introduction

Python Programming - Introduction

University

15 Qs

Get started with python

Get started with python

University

19 Qs

Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

University

15 Qs

Python Programming

Python Programming

University

20 Qs

COMP177 Mod 8 - Lists & Dictionaries

COMP177 Mod 8 - Lists & Dictionaries

University

16 Qs

Python Quiz 2: Lists, Sets and Dictionary

Python Quiz 2: Lists, Sets and Dictionary

University

15 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?