>
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
A man can row 24 km downstream in 3 hours and the same distance upstream in 6 hours. What is the speed of the boat in still water?
CUET (UG) - 2025
Boat and Stream
View Solution
A and B together can complete a task in 10 days. A alone can finish it in 15 days. In how many days can B alone finish the work?
CUET (UG) - 2025
Time and Work
View Solution
What is the angle between the hour and minute hand at 3:30?
CUET (UG) - 2025
Clock and Calendar
View Solution
A, B, C and D are partners in a firm sharing profits in the ratio of 3:2:1:4. A retired and his share is acquired by B and C in the ratio 3:2. Calculate the new profit sharing ratio of partners.
CUET (UG) - 2025
Partnership
View Solution
Rearrange the parts to form a logical sentence:
A) the city's new policy
B) has significantly improved
C) air quality
D) over the past year
CUET (UG) - 2025
Sentence Arrangement
View Solution
View More Questions