FoP Prelims Review

FoP Prelims Review

University

86 Qs

quiz-placeholder

Similar activities

Java syntax

Java syntax

University

86 Qs

KIT PYTHON

KIT PYTHON

University

90 Qs

CSC 1351 Test 3

CSC 1351 Test 3

University

84 Qs

Technical Quiz

Technical Quiz

University

84 Qs

JRRI_Programming_Quiz_EASY_Set1

JRRI_Programming_Quiz_EASY_Set1

University

82 Qs

Strings in Python

Strings in Python

University

90 Qs

Final Exam - Soft Eng 2

Final Exam - Soft Eng 2

University

85 Qs

Python Programming Quiz

Python Programming Quiz

University

90 Qs

FoP Prelims Review

FoP Prelims Review

Assessment

Quiz

Computers

University

Medium

Created by

DeCastro boi

Used 1+ times

FREE Resource

86 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of import statements in Python?

To define functions

To include external Python modules

To create variables

To write comments

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, how is a block of code defined?

Using curly braces { }

Using parentheses ( )

Using indentation

Using the block keyword

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid variable assignment in Python?

int x = I0

x := 10

10 = x

x = 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who created Python and when was it released?

Dennis Ritchie, 1970

Guido van Rossum, 1991

James Gosling, 1995

Bjarne Stroustrup, 1985

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start a single-line comment in Python?

/*

#

//

<!--

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Python data type?

list

array

dict

set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a notable feature of Python's design philosophy?

Complex syntax

Significant whitespace

Case insensitivity

Mandatory variable declarations

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?