
Computer Science Quiz - Grade XII
Authored by Amudhavalli K
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct mode to open a text file for reading?
rb
r
w
a
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to read the entire contents of a text file as a single string?
readline()
readlines()
read()
input()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the readline() function return?
A list of lines
One line at a time as a string
The number of lines
None of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to write data to a text file?
input()
print()
write()
append()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens if a file is opened in 'w' mode and it already exists?
It appends to the file
It raises an error
It deletes the contents of the file
It does nothing
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you close a file in Python?
file.close()
file.stop()
file.end()
close(file)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the 'a' mode do when opening a file?
Opens for reading
Opens for writing (overwrites)
Opens for appending
Opens for deleting
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?
Similar Resources on Wayground
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
12 questions
BÀI 2: TRÍ TUỆ NHÂN TAO TRONG KHOA HỌC VÀ CUỘC SÔNG
Quiz
•
12th Grade
11 questions
Microsoft Word Office
Quiz
•
10th Grade - University
15 questions
Imaging and Design
Quiz
•
11th - 12th Grade
10 questions
ASJ Quiz Kelas XII
Quiz
•
12th Grade
10 questions
emtech
Quiz
•
12th Grade
12 questions
Remidi TLJ
Quiz
•
12th Grade
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade