Python-06-2-File&DB

Python-06-2-File&DB

7 Qs

quiz-placeholder

Similar activities

LV13 Revision Test 2

LV13 Revision Test 2

KG - University

12 Qs

FINE PRINT: Vehicle History Report

FINE PRINT: Vehicle History Report

KG - University

10 Qs

WEDNESDAY MATH 8 SET#1: Functions and Slope (8th CCSS)

WEDNESDAY MATH 8 SET#1: Functions and Slope (8th CCSS)

6th - 8th Grade

10 Qs

Chapter 10 Coordination (part 2) WEEK 16

Chapter 10 Coordination (part 2) WEEK 16

KG - University

10 Qs

Ratios and Proportionality (6th CCSS)

Ratios and Proportionality (6th CCSS)

6th Grade

10 Qs

Python-02-1-TupleList

Python-02-1-TupleList

KG - University

7 Qs

CL 7 -10. Program coding

CL 7 -10. Program coding

KG - University

10 Qs

Unit 2 Summative 2024-25

Unit 2 Summative 2024-25

KG - University

12 Qs

Python-06-2-File&DB

Python-06-2-File&DB

Assessment

Quiz

others

Hard

Created by

Chun-Jung Lin

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Consider the following tuple: say_what=('say',' what', 'you', 'will') What is the result of the following say_what[-1] ?
'will'
'what'
'you'
'say '

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Consider the following tuple A=(1,2,3,4,5), what is the result of the following:A[1:4]:
(2, 3, 4, 5)
(3, 4, 5)
(2, 3, 4)

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Consider the following tuple A=(1,2,3,4,5). What is the result of the following: len(A)
6
5
4

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Consider the following list B=[1,2,[3,'a'],[4,'b']]. What is the result of the following: B[3][1]
"c"
"b"
[4,"b"]

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the result of the following operation? [1,2,3]+[1,1,1]
TypeError
[1, 2, 3, 1, 1, 1]
[2,3,4]

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the length of the list A = [1] after the following operation: A.append([2,3,4,5])
2
5

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the result of the following: "Hello Mike".split()
["H"]
["HelloMike"]
["Hello","Mike"]