>
Exams
>
Computer Science
>
Sorting
>
yash wrote a program for inserting and deleting da
Question:
Yash wrote a program for inserting and deleting data in a file, using Python, One of the functions, he used is incorrect. identify the incorrect function.
CUET (UG) - 2023
CUET (UG)
Updated On:
Oct 17, 2024
\(\text{writelines}( )\)
\(\text{readlines}( )\)
\(\text{writeline}( )\)
\(\text{readline}( )\)
Hide Solution
Verified By Collegedunia
The Correct Option is
C
Solution and Explanation
The correct option is (C) :\(\text{writeline}( )\)
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Sorting
__________ compares neighboring elements only and swaps them when necessary?
CUET (UG) - 2024
Computer Science
Sorting
View Solution
What will be the result after pass 2 using Bubble Sort, if we are sorting elements in ascending order?
Initial List: 7 19 18 9 23 51 12 54 73
CUET (UG) - 2024
Computer Science
Sorting
View Solution
If a list contains ’n’ number of elements and all the elements are by default sorted in ascending order, how many comparisons will be required during 1
st
pass of bubble sort to arrange the list in ascending order?
CUET (UG) - 2024
Computer Science
Sorting
View Solution
What is the number of passes made by bubble sort for a list containing n elements ?
CUET (UG) - 2023
Computer Science
Sorting
View Solution
Which statement is incorrect in relation to searching an element in a list :
CUET (UG) - 2023
Computer Science
Sorting
View Solution
View More Questions
Questions Asked in CUET exam
Find the ratio of de-Broglie wavelengths of deuteron having energy E and \(\alpha\)-particle having energy 2E :
CUET (UG) - 2026
Dual nature of radiation and matter
View Solution
The de-Broglie wavelength associated with a ball of mass 150 g traveling at 30.0 m/s would be
CUET (UG) - 2025
de broglie hypothesis
View Solution
A clock shows the time as 3:15. What is the angle between the hour and minute hands?
CUET (UG) - 2025
Clock and Calendar
View Solution
If 36: 84 :: 42: X, then the value of X, is:
CUET (UG) - 2025
Ratio and Proportion
View Solution
The angles of elevation of the top of a tower from two points at a distance of 5 meters and 20 meters along the same straight line from the base of the tower, are complementary. Find the height of the tower.
CUET (UG) - 2025
Trigonometry
View Solution
View More Questions