>
Exams
>
Computer Science
>
File Handling in Python
>
seek 1 method in files used for
Question:
seek(1) method in files used for:
Show Hint
`seek()` = reposition the file pointer. `seek(1)` means go to position 1 in the file.
CUET (UG) - 2023
CUET (UG)
Updated On:
Feb 11, 2026
Sets the file's current position at the offset
Sets the file's previous position at the offset
Sets the file's current position within the file
Tells you the file is opened or not
Show Solution
Verified By Collegedunia
The Correct Option is
A
Solution and Explanation
The `seek(offset)` method in Python sets the file’s current position at the specified offset. It is commonly used to navigate to a specific byte within a file for reading or writing.
Download Solution in PDF
Was this answer helpful?
0
0
Top CUET Computer Science Questions
What is the range of frequency for radio waves?
CUET (UG) - 2026
Computer Science
Data Transmission
View Solution
Which of the following are the applications of binary search?
(A) Telephone Directory
(B) Finding the element with a minimum or maximum value in a sorted list
(C) Implementing routing tables
(D) Indexing in database
Choose the
correct
answer from the options given below:
CUET (UG) - 2026
Computer Science
Searching
View Solution
The 3 "R" of e-waste management leading to efficient disposal are:
CUET (UG) - 2026
Computer Science
Societal Impacts
View Solution
Which of the following is an example of cyberbullying?
CUET (UG) - 2026
Computer Science
Societal Impacts
View Solution
The physical organization of devices and connecting media in a network is called
.
CUET (UG) - 2026
Computer Science
Networking Topologies
View Solution
View More Questions
Top CUET File Handling in Python Questions
Which of the following methods is used to position a file object to a specific position in a file?
CUET (UG) - 2026
Computer Science
File Handling in Python
View Solution
Arrange the following statements in the correct sequence in order to write multiple strings to a file:
(A) myobj.close()
(B) lines= ["Hello everyone $\backslash$n", "writing multiple strings into file"]
(C) myobj.writelines(lines)
(D) myobj = open ("myfile.txt", 'w')
Choose the correct answer from the options given below:
CUET (UG) - 2026
Computer Science
File Handling in Python
View Solution
Arrange the following in correct order:
A. listvalues = ['abc', 'Gen', 1, 2.4]
B. pickle.load(fileobject)
C. fileobject = open("file.dat", "wb")
D. pickle.dump(listvalues, fileobject)
Choose the correct answer from the options given below:
CUET (UG) - 2026
Computer Science
File Handling in Python
View Solution
Arrange the following in order in the context of exception handling:
(A) Program Termination
(B) Exception is raised
(C) Error occurs in a program
(D) Catching an exception Choose the correct answer from the options given below:
CUET (UG) - 2025
Computer Science
File Handling in Python
View Solution
How can you save a matplotlib plot as a file?
CUET (UG) - 2025
Computer Science
File Handling in Python
View Solution
View More Questions
Top CUET Questions
Which of the following is correctly matched?
CUET (UG) - 2026
Biology
View Solution
Choose the word that best completes the sentence.
He behaved in a ____ manner and refused to give monetary assistance to his family.
CUET (UG) - 2026
Word Choice
View Solution
In how many ways can a team of 11 cricket players be chosen from 14 players?
CUET (UG) - 2026
permutations and combinations
View Solution
Find the missing number in the following series: \[ 62,\ 74,\ 80,\ 86,\ 95,\ ?,\ 158 \]
CUET (UG) - 2026
Number Series
View Solution
Arrange the following steps involved in PCR in the correct sequence.
(A) Amplification
(B) Extension of primers
(C) Primer annealing
(D) Denaturation
Choose the correct answer from the options given below:
CUET (UG) - 2026
Genetic Engineering and Biotechnology
View Solution
View More Questions