
50 questions (3)
Authored by Marzhan Serik
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to denote the start of a line in regular expressions?
^
$
*
+
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python method is used to read the contents of a file?
read()
load()
open()
readfile()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create an infinite loop using a while loop?
while True:
for i in range(10):
while False:
for i in range(0, 10):
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword for defining a for loop in Python?
iterate
loop
for
repeat
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is used to store integers?
str
float
int
bool
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword for defining a new class in Python?
class
object
define
new
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which characters represent zero or more occurrences in regular expressions?
?
+
*
{}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?