Computer Science Quiz

Computer Science Quiz

12th Grade

19 Qs

quiz-placeholder

Similar activities

File Management

File Management

9th - 12th Grade

15 Qs

JavaScript Basics CodeHS

JavaScript Basics CodeHS

7th - 12th Grade

20 Qs

File Handling Quiz

File Handling Quiz

12th Grade

16 Qs

File Handling in Python - Grade 12 CBSE

File Handling in Python - Grade 12 CBSE

12th Grade

15 Qs

Exploring File Operations in Python

Exploring File Operations in Python

12th Grade

20 Qs

File Methods in Python

File Methods in Python

12th Grade

17 Qs

file

file

8th - 12th Grade

20 Qs

File i/o

File i/o

10th Grade - University

20 Qs

Computer Science Quiz

Computer Science Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Shubham Mishra

FREE Resource

19 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

State True or False.

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a sequential datatype in Python ?

Dictionary

String

List

Tuple

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following dictionary Day={1:"Monday", 2: "Tuesday", 3: "Wednesday"} Which statement will return "Tuesday".

Day.pop()

Day.pop(2)

Day.pop(1)

Day.pop("Tuesday")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the given expression : 7<4 or 6>3 and not 10==10 or 17>4 Which of the following will be the correct output if the given expression is evaluated ?

True

False

NONE

NULL

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct output of the code : S="Amrit Mahotsav @ 75" A=S.split(" ",2) print(A)

('Amrit', 'Mahotsav', '@', '75')

['Amrit', 'Mahotsav', '@ 75']

('Amrit', 'Mahotsav', '@ 75')

['Amrit', 'Mahotsav', '@', '75']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following modes in Python creates a new file, if file does not exist and overwrites the content, if the file exists ?

r+

r

w

a

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank : ___________ is not a valid built-in function for list manipulations.

count()

length()

append()

extend()

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?