HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /Last week the file Members.txt held five names. This week a program opens it FOR WRITE, writes the names of two new members and closes it. What is in the file now?
Computer ScienceMediumHigh School (9–10)Algorithms, Programming and Logic › ProgrammingIGCSE
StemPy LabCreated by StemPy Lab

Last week the file Members.txt held five names. This week a program opens it FOR WRITE, writes the names of two new members and closes it. What is in the file now?

Log in to save
← All Quizzes
← A hotel works out the number of each room from its floor and its door. What is output?A shop logs the parcels sent each day. Its file Week.txt starts with the lines 7, 4 and 9, for Monday, Tuesday and Wednesday. What is output? →
More onAlgorithms, Programming and Logic › Programming

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A 2D array holds a small multiplication table. What is output?Hard
  2. A team records its goals in five matches and counts the matches that beat its average. What is…Hard
  3. A program must read one line from the file Log.txt. In which order are the statements written?Medium
  4. A shop logs the parcels sent each day. Its file Week.txt starts with the lines 7, 4 and 9, for…Medium
  5. A hotel works out the number of each room from its floor and its door. What is output?Medium
All questions on this topic →

Problems on this topic

  1. A long scenario question. A teacher has the names of 5 students in the file Names.txt, one name a…Hard
  2. Shopping.txt holds six lines: bread, rice, milk, eggs, tea and jam…Medium
  3. The file Best.txt holds one line: 120. What is output, and what does Best.txt hold afterwards, when…Easy
  4. The nine squares of a board are input row by row: X, O, O, then X, X, X, then O, a dot for an empty…Hard
All problems on this topic →