Python File Handling MCQs

1 min read

Python provides built-in file handling capabilities through the open() function, allowing developers to seamlessly read from, write to, and manipulate external files. Files can be opened in various modes such as text ('t') or binary ('b'), combined with operations like read ('r'), write ('w'), or append ('a'). Modern Python development emphasizes using the with statement context manager, which ensures files are automatically closed safely after execution, preventing resource leaks and memory corruption during file operations.

1. What is the primary function used to open a file in Python?

0) file_open()
1) open()
2) read_file()
3) start_file()
Correct Answer:

2. Which of the following parameters does the `open()` function accept for specifying how the file is accessed?

0) mode
1) encoding
2) errors
3) All of the above
Correct Answer:

3. What does the 'r+' mode mean when opening a file?

0) Read only
1) Read and write (file must exist, pointer at beginning)
2) Write only with truncation
3) Append only
Correct Answer:

4. What does the 'w+' mode mean when opening a file?

0) Read and write, but truncates the file to zero length first
1) Read only, creating the file if missing
2) Append and read without truncation
3) Exclusive creation mode
Correct Answer:

5. What does the 'a+' mode mean when opening a file?

0) Read and write, with all writes appending to the end of the file
1) Read only, starting from the end of the file
2) Write only, erasing previous data
3) Binary archive mode
Correct Answer:

6. What happens if you open a non-existent file in 'w' mode?

0) A FileNotFoundError is raised
1) A new file is created automatically
2) The program crashes immediately with a syntax error
3) It opens in read mode instead
Correct Answer:

7. What happens if you open a non-existent file in 'x' mode?

0) A new file is created successfully
1) A FileExistsError or FileNotFoundError is raised depending on context
2) FileExistsError is raised because the file already exists (or FileNotFoundError if path parent is missing)
3) It defaults to append mode
Correct Answer:

8. Why is the `encoding` parameter important when opening text files in Python?

0) It determines how bytes are translated into characters, preventing UnicodeDecodeError across different platforms
1) It encrypts the text content using AES
2) It compresses the file size automatically
3) It formats the text into HTML markup
Correct Answer:

9. What is the default text encoding used by Python on most modern Linux systems?

0) ASCII
1) UTF-8
2) ISO-8859-1
3) UTF-16
Correct Answer:

10. What exception is raised when Python encounters bytes that do not conform to the specified text encoding during file reading?

0) EncodingError
1) UnicodeDecodeError
2) ByteConversionError
3) SyntaxError
Correct Answer:

11. How can you handle un-encodable characters when writing text to a file?

0) By setting the `errors` parameter in `open()` to values like 'ignore' or 'replace'
1) By using binary mode exclusively
2) By wrapping the code in a try-except block catching TypeError
3) It is impossible to handle; Python will always crash
Correct Answer:

12. What does the `buffering` parameter in `open()` control?

0) The memory buffer policy (e.g., unbuffered, line-buffered, or block-buffered)
1) The download speed of the file from disk
2) The maximum line length allowed in the file
3) The buffer timeout duration in seconds
Correct Answer:

13. What does a buffering value of `0` mean when opening a file in binary mode?

0) Buffering is disabled (unbuffered)
1) Buffering is set to maximum size
2) Line buffering is enabled
3) It causes an immediate ValueError
Correct Answer:

14. What is the file object's `closed` attribute used for?

0) To check if the file has been closed (`True` if closed, `False` otherwise)
1) To force the file to close immediately
2) To check if the file is locked by another process
3) To toggle read-only permissions
Correct Answer:

15. What does the file method `flush()` do?

0) Clears the internal write buffer and writes any unwritten data to disk
1) Deletes the contents of the file
2) Flushes the read pointer back to byte 0
3) Closes the file handle automatically
Correct Answer:

16. When is data normally written to disk when using standard buffered file writing in Python?

0) When the buffer fills up, when `flush()` is called, or when the file is closed
1) Instantly upon every single call to `write()`
2) Only when the computer is shut down
3) Only when explicitly requested via `os.sync()`
Correct Answer:

17. What does the file method `fileno()` return?

0) The underlying integer file descriptor used by the operating system
1) The line number of the current pointer
2) The total number of open files
3) The file's inode number
Correct Answer:

18. What does the `readable()` method on a file object return?

0) A boolean indicating whether the file was opened with reading access
1) A list of characters that can be read
2) The access permission flags of the operating system
3) True if the file is not empty
Correct Answer:

19. What does the `writable()` method on a file object return?

0) A boolean indicating whether the file was opened with writing access
1) True if disk space is available
2) True if the file is write-protected
3) An integer code representing write permissions
Correct Answer:

20. What does the `seekable()` method on a file object return?

0) A boolean indicating whether the file supports random access positioning via `seek()` and `tell()`
1) True if the file can be searched using regular expressions
2) True if the file is indexed in an OS database
3) False for all text files
Correct Answer:

21. What are the three possible values for the `whence` argument in the `seek(offset, whence)` method?

0) 0 (start of file), 1 (current position), 2 (end of file)
1) -1 (beginning), 0 (middle), 1 (end)
2) os.SEEK_SET, os.SEEK_CUR, os.SEEK_END
3) Both A and C
Correct Answer:

22. Can you use `whence = 1` (current position) or `whence = 2` (end of file) when seeking in a text file opened in standard text mode ('r')?

0) No, seeking relative to current or end positions is generally only supported in binary mode (or text mode with offset 0)
1) Yes, it works identically to binary mode
2) Only on Windows operating systems
3) Only if the file size is less than 1MB
Correct Answer:

23. What happens if you pass a negative offset to `seek()` in binary read mode with `whence = 2`?

0) It moves the pointer backwards from the end of the file
1) It raises a ValueError
2) It moves the pointer to the absolute beginning of the file
3) It has no effect
Correct Answer:

24. How can you iterate over the lines of a file efficiently without loading the entire file into memory?

0) By iterating directly over the file object using a `for line in file:` loop
1) By using `file.readlines()`
2) By calling `file.read().split('\n')`
3) By using `file.readall()`
Correct Answer:

25. Why is iterating directly over a file object (`for line in file:`) memory efficient?

0) Because Python reads the file line-by-line using internal buffering rather than loading the whole file at once
1) Because it compresses the file in RAM
2) Because it deletes lines as soon as they are read
3) Because it converts strings to integers
Correct Answer:

26. What does the `read(size)` method do when called with an integer `size` argument?

0) Reads at most `size` characters (in text mode) or bytes (in binary mode) from the file
1) Reads exactly `size` lines from the file
2) Skips `size` bytes from the current position
3) Returns the file size if `size` matches
Correct Answer:

27. What does the `readline(size)` method do when called with a `size` argument?

0) Reads a single line, but stops reading if `size` bytes/characters have been read even if a newline is not reached
1) Reads `size` lines simultaneously
2) Ignores lines longer than `size`
3) Raises a ValueError
Correct Answer:

28. What does the `readlines(hint)` method do when called with a `hint` byte size?

0) Reads lines until the total size of all lines read roughly equals or exceeds `hint` bytes
1) Returns `hint` number of lines
2) Hints to the compiler to optimize reading speed
3) Truncates lines to `hint` characters
Correct Answer:

29. What is the standard module for reading and writing CSV (Comma-Separated Values) files in Python?

0) csv
1) tabular
2) spreadsheet
3) datacsv
Correct Answer:

30. How do you read rows from a CSV file using the `csv` module as dictionaries mapping header keys to values?

0) csv.DictReader(file)
1) csv.reader(file, dict=True)
2) csv.MapReader(file)
3) csv.to_dict(file)
Correct Answer:

31. How do you write rows to a CSV file from dictionaries using the `csv` module?

0) csv.DictWriter(file, fieldnames=keys)
1) csv.writer(file).write_dict()
2) csv.MapWriter(file)
3) csv.writerows(file, dict)
Correct Answer:

32. Why is the `newline=''` argument recommended when opening files for use with the `csv` module in Python 3?

0) To prevent universal newline translation issues across different operating systems, ensuring correct line endings in CSV output
1) To delete all existing newlines in the file
2) To make the CSV reader run faster
3) It is required by the operating system kernel
Correct Answer:

33. What built-in module is used to read and write JSON (JavaScript Object Notation) data to and from files?

0) json
1) jsondata
2) parser
3) objfile
Correct Answer:

34. Which function in the `json` module writes a Python object directly to a file object?

0) json.dump(obj, file)
1) json.dumps(obj, file)
2) json.write(obj, file)
3) json.to_file(obj, file)
Correct Answer:

35. Which function in the `json` module reads JSON data directly from a file object and parses it into a Python object?

0) json.load(file)
1) json.loads(file)
2) json.read(file)
3) json.parse(file)
Correct Answer:

36. What is the difference between `json.dump()` and `json.dumps()`?

0) `json.dump()` writes to a file-like object, while `json.dumps()` returns a JSON-formatted string
1) `json.dumps()` writes to a file, while `json.dump()` returns a string
2) `json.dump()` is for binary files, while `json.dumps()` is for text files
3) There is no difference
Correct Answer:

37. What is the difference between `json.load()` and `json.loads()`?

0) `json.load()` reads from a file-like object, while `json.loads()` parses a JSON string
1) `json.loads()` reads from a file, while `json.load()` parses a string
2) `json.load()` is slower than `json.loads()`
3) They are identical aliases
Correct Answer:

38. What built-in module is used for serializing and deserializing Python object structures into byte streams (Python-specific)?

0) pickle
1) serializer
2) marshal
3) shelf
Correct Answer:

39. Why should you never unpickle data received from an untrusted or unauthenticated source?

0) Because unpickling untrusted data can execute arbitrary malicious code on your system (Remote Code Execution vulnerability)
1) Because it always causes a UnicodeDecodeError
2) Because pickle files are encrypted with unbreakable keys
3) Because it will corrupt the RAM
Correct Answer:

40. Which module provides a persistent, dictionary-like database interface backed by `pickle` for storing Python objects on disk?

0) shelve
1) dbm
2) sqlite3
3) persistence
Correct Answer:

41. Which standard library module provides lightweight SQL database management for Python file-based databases?

0) sqlite3
1) sqlfile
2) dbapi
3) relational
Correct Answer:

42. How do you open an SQLite database file using the `sqlite3` module?

0) sqlite3.connect('database.db')
1) sqlite3.open('database.db')
2) sqlite3.file('database.db')
3) sqlite3.load('database.db')
Correct Answer:

43. What module is used to handle path manipulations across different operating systems (e.g., Windows vs Linux) in a modern object-oriented way?

0) pathlib
1) os.path
2) dirpath
3) filepath
Correct Answer:

44. How do you create a `Path` object representing the current working directory in `pathlib`?

0) Path('.')
1) Path.current()
2) Path.cwd()
3) Both A and C
Correct Answer:

45. How do you check if a file exists using `pathlib`?

0) path_obj.exists()
1) pathlib.exists(path_obj)
2) path_obj.is_file()
3) Both A and C (though exists() checks both files and directories)
Correct Answer:

46. How do you read the entire text of a file using `pathlib` in one method call?

0) path_obj.read_text()
1) path_obj.read()
2) path_obj.get_text()
3) path_obj.load_text()
Correct Answer:

47. How do you write a string to a file using `pathlib` in one method call?

0) path_obj.write_text('content')
1) path_obj.write('content')
2) path_obj.save_text('content')
3) path_obj.output('content')
Correct Answer:

48. How do you combine path segments cleanly using `pathlib`?

0) Using the division operator (`/`), e.g., `folder / 'file.txt'`
1) Using addition (`folder + 'file.txt'`), e.g., `folder + 'file.txt'`
2) Using dot notation, e.g., `folder.file.txt`
3) Using `os.path.join()` only
Correct Answer:

49. Which function in the `os` module creates a single directory?

0) os.mkdir('dir_name')
1) os.makedirs('dir_name')
2) os.createdir('dir_name')
3) os.newdir('dir_name')
Correct Answer:

50. Which function in the `os` module creates a directory along with any necessary intermediate parent directories?

0) os.makedirs('path/to/nested/dir')
1) os.mkdir('path/to/nested/dir', recursive=True)
2) os.mkdirs('path/to/nested/dir')
3) os.create_tree('path/to/nested/dir')
Correct Answer:

51. How do you remove an empty directory using the `os` module?

0) os.rmdir('dir_name')
1) os.removedirs('dir_name')
2) os.delete_dir('dir_name')
3) os.rm('dir_name')
Correct Answer:

52. How do you rename or move a file in Python?

0) os.rename('old.txt', 'new.txt')
1) os.move('old.txt', 'new.txt')
2) shutil.move('old.txt', 'new.txt')
3) Both A and C
Correct Answer:

53. Which module provides high-level file operations such as copying entire directory trees, archiving, and moving files?

0) shutil
1) fileutil
2) os.high
3) copier
Correct Answer:

54. How do you copy a file including its metadata using the `shutil` module?

0) shutil.copy2('src.txt', 'dst.txt')
1) shutil.copy('src.txt', 'dst.txt')
2) shutil.copyfile('src.txt', 'dst.txt')
3) shutil.duplicate('src.txt', 'dst.txt')
Correct Answer:

55. How do you copy an entire directory tree recursively using `shutil`?

0) shutil.copytree('src_dir', 'dst_dir')
1) shutil.copy('src_dir', 'dst_dir', recursive=True)
2) shutil.copydir('src_dir', 'dst_dir')
3) shutil.treecopy('src_dir', 'dst_dir')
Correct Answer:

56. How do you delete an entire directory tree (including all files and subdirectories) using `shutil`?

0) shutil.rmtree('dir_name')
1) shutil.deletedir('dir_name', recursive=True)
2) shutil.purge('dir_name')
3) os.rmdir('dir_name', force=True)
Correct Answer:

57. What module is used to create and extract archive files like ZIP and TAR in Python?

0) zipfile and tarfile
1) archive and compress
2) gzip and zlib
3) zipper
Correct Answer:

58. How do you create a ZIP archive from a set of files using the `zipfile` module?

0) With `zipfile.ZipFile('archive.zip', 'w') as zf: zf.write('file.txt')`
1) Using `zipfile.compress('file.txt', 'archive.zip')`
2) Using `shutil.make_archive('archive', 'zip', 'folder')`
3) Both A and C
Correct Answer:

59. What is the purpose of the `tempfile` module in Python?

0) To safely create temporary files and directories that are automatically cleaned up
1) To store temporary cache data in RAM permanently
2) To measure how long file operations take
3) To test file reading speeds
Correct Answer:

60. How do you create a temporary file using the `tempfile` module inside a context manager?

0) with tempfile.TemporaryFile() as tf:
1) with tempfile.open() as tf:
2) with tempfile.NamedTemporaryFile() as tf:
3) Both A and C
Correct Answer:

61. What is the difference between `TemporaryFile()` and `NamedTemporaryFile()`?

0) `TemporaryFile` has no visible name in the filesystem and cannot be opened by name elsewhere, while `NamedTemporaryFile` has a visible path name
1) `NamedTemporaryFile` is encrypted, while `TemporaryFile` is not
2) `TemporaryFile` can only be used on Linux, while `NamedTemporaryFile` is Windows-only
3) There is no difference
Correct Answer:

62. What exception is raised when you try to perform file operations on a closed file object?

0) ValueError: I/O operation on closed file
1) FileClosedError
2) ClosedFileException
3) IOError: file is closed
Correct Answer:

63. What happens to file locks or file pointers if a program terminates abruptly without closing the file?

0) Modern operating systems automatically reclaim open file descriptors and release locks, though buffered data might be lost if not flushed
1) The file remains locked forever until reboot
2) The file is permanently deleted from disk
3) The hard drive becomes corrupted
Correct Answer:

64. How can you check the file size (in bytes) using `os.path`?

0) os.path.getsize('file.txt')
1) os.path.size('file.txt')
2) os.path.filesize('file.txt')
3) os.path.stat('file.txt').size
Correct Answer:

65. How can you check the file size (in bytes) using `pathlib`?

0) path_obj.stat().st_size
1) path_obj.size()
2) path_obj.get_size()
3) path_obj.filesize
Correct Answer:

66. How can you check the last modification time of a file using `os.path`?

0) os.path.getmtime('file.txt')
1) os.path.getatime('file.txt')
2) os.path.getctime('file.txt')
3) os.path.timestamp('file.txt')
Correct Answer:

67. What does `os.path.getctime('file.txt')` return on Windows versus Linux?

0) On Windows, time of creation; on Linux, time of most recent metadata change
1) Always returns the file creation time on all operating systems
2) Always returns the file modification time
3) Returns the compile time of Python
Correct Answer:

68. What function checks if a path points to a file (rather than a directory)?

0) os.path.isfile('path')
1) path_obj.is_file()
2) Both A and C
3) os.path.exists_file('path')
Correct Answer:

69. What function checks if a path points to a directory?

0) os.path.isdir('path')
1) path_obj.is_dir()
2) Both A and C
3) os.path.isdirectory('path')
Correct Answer:

70. What function checks if a path is an absolute path?

0) os.path.isabs('path')
1) path_obj.is_absolute()
2) Both A and C
3) os.path.absolute('path')
Correct Answer:

71. How do you extract the directory path portion from a full file path string?

0) os.path.dirname('/path/to/file.txt')
1) path_obj.parent
2) Both A and C
3) os.path.splitpath('/path/to/file.txt')[0]
Correct Answer:

72. How do you extract the filename/basename portion from a full file path string?

0) os.path.basename('/path/to/file.txt')
1) path_obj.name
2) Both A and C
3) os.path.filename('/path/to/file.txt')
Correct Answer:

73. How do you split a path into a (directory, filename) tuple?

0) os.path.split('/path/to/file.txt')
1) path_obj.parts
2) os.path.divide('/path/to/file.txt')
3) shutil.split('/path/to/file.txt')
Correct Answer:

74. How do you split a filename into a (root, extension) tuple?

0) os.path.splitext('file.txt')
1) path_obj.suffix
2) Both A and C
3) os.path.splitext gives ('file', '.txt')
Correct Answer:

75. What does `path_obj.suffixes` return for a filename like `archive.tar.gz`?

0) ['.tar', '.gz']
1) '.tar.gz'
2) ['gz']
3) ['.gz']
Correct Answer:

76. How do you list all files and directories inside a given directory using `os`?

0) os.listdir('dir_path')
1) os.scandir('dir_path')
2) Both A and C
3) os.getdir('dir_path')
Correct Answer:

77. What is the advantage of `os.scandir()` over `os.listdir()`?

0) `os.scandir()` returns an iterator of `DirEntry` objects that also expose file attribute info (like is_file(), stat()), making it much faster for directory traversal
1) `os.scandir()` deletes files automatically
2) `os.scandir()` is written in pure Python, while `os.listdir()` is written in C
3) There is no performance difference
Correct Answer:

78. How do you list directory contents using `pathlib`?

0) path_obj.iterdir()
1) path_obj.list()
2) path_obj.contents()
3) path_obj.glob_all()
Correct Answer:

79. How do you perform glob pattern matching (e.g., finding all `.py` files) using `pathlib`?

0) path_obj.glob('*.py')
1) path_obj.match('*.py')
2) pathlib.glob(path_obj, '*.py')
3) path_obj.find('*.py')
Correct Answer:

80. What is recursive globbing (matching files in all subdirectories recursively) in `pathlib`?

0) path_obj.rglob('*.py')
1) path_obj.glob('**/*.py')
2) Both A and B
3) path_obj.recurse('*.py')
Correct Answer:

81. What is an I/O stream in Python's `io` module?

0) An abstract representation of a sequence of byte or character data streams (like StringIO or BytesIO)
1) A network streaming protocol for video
2) A multi-threaded CPU pipeline
3) An exception logging stream
Correct Answer:

82. What is `io.StringIO` used for?

0) To treat an in-memory string buffer as a file-like object
1) To read text directly from standard input
2) To convert binary data into strings
3) To buffer large network requests
Correct Answer:

83. What is `io.BytesIO` used for?

0) To treat an in-memory byte buffer as a file-like object
1) To measure memory consumption of byte arrays
2) To stream binary audio over HTTP
3) To compress files in RAM
Correct Answer:

84. Why are `StringIO` and `BytesIO` extremely useful in testing or data processing?

0) They allow you to mock file reading and writing operations entirely in memory without writing or touching actual disk storage
1) They make file operations 100x faster than disk storage
2) They automatically encrypt data
3) They prevent all memory leaks
Correct Answer:

85. What does `sys.stdin` represent?

0) The standard input stream (by default, keyboard input or piped data)
1) The standard internal configuration file
2) The directory path of user input
3) The log file for system errors
Correct Answer:

86. What does `sys.stdout` represent?

0) The standard output stream (by default, the console/terminal screen)
1) The file storage directory for outgoing data
2) The compiler output buffer
3) The debugger tracing log
Correct Answer:

87. What does `sys.stderr` represent?

0) The standard error stream used for outputting error messages and diagnostics
1) The file handling exception log
2) The syntax checker stream
3) The network socket error handler
Correct Answer:

88. How can you redirect standard output to a file temporarily within Python code?

0) By assigning `sys.stdout` to an open file object
1) Using `print(..., file=open_file)`
2) Both A and B
3) By changing operating system environment variables
Correct Answer:

89. What exception is raised when you attempt to write to a file that was opened only in read mode ('r')?

0) UnsupportedOperation (or io.UnsupportedOperation / OSError)
1) PermissionError
2) WriteProtectedError
3) TypeError
Correct Answer:

90. What exception is raised when you try to read from a file opened only in write mode ('w')?

0) UnsupportedOperation (or io.UnsupportedOperation / OSError)
1) ReadError
2) PermissionError
3) LookupError
Correct Answer:

91. What exception is raised by the operating system when you lack permissions to read or write a file?

0) PermissionError
1) AccessDeniedError
2) SecurityError
3) IOError
Correct Answer:

92. How can you change file permissions (chmod) programmatically in Python on POSIX systems?

0) os.chmod('file.txt', mode)
1) os.set_permissions('file.txt', mode)
2) path_obj.chmod(mode)
3) Both A and C
Correct Answer:

93. What does file locking via `fcntl` or `msvcrt` modules allow you to do?

0) Coordinate exclusive or shared access to a file across multiple concurrent processes or threads
1) Encrypt the file contents with a hardware lock
2) Prevent the operating system from deleting the file
3) Compress the file into a locked ZIP archive
Correct Answer:

94. What is the primary difference between text mode and binary mode file handling in Python?

0) Text mode performs automatic newline translation (e.g., `\n` to `\r\n` on Windows) and text encoding/decoding, while binary mode reads and writes raw bytes untouched
1) Binary mode can only store numbers, while text mode stores letters
2) Text mode is faster than binary mode
3) Binary mode does not support file seeking
Correct Answer:

95. What does universal newline support mean in Python file handling?

0) Python recognizes all standard platform newline variations (`\n`, `\r`, `\r\n`) and translates them uniformly to `\n` when reading in text mode
1) Python converts all files into Unicode text automatically
2) Python deletes all line breaks
3) Python generates files compatible with web browsers
Correct Answer:

96. How can you disable universal newline translation in text mode if necessary?

0) By passing `newline=''` or specific newline characters to `open(..., newline=...)`
1) By using binary mode ('rb')
2) By setting `sys.newlines = False`
3) It cannot be disabled in text mode
Correct Answer:

97. What happens if you call `file.read()` with no arguments on a very large multi-gigabyte file?

0) It attempts to load the entire file into RAM, which can cause a MemoryError or system slowdown if memory is insufficient
1) It reads the file line by line automatically
2) It raises a FileTooLargeError
3) It truncates the file to 1MB
Correct Answer:

98. What is the recommended design pattern for processing very large files in Python?

0) Reading and processing the file iteratively in chunks (e.g., looping over lines or reading fixed byte chunks in a `while` loop)
1) Reading the whole file into a list of strings
2) Using `json.load()` on the entire file
3) Opening the file without a context manager
Correct Answer:

99. What is the purpose of the `os.path.expanduser('~')` function?

0) To expand the tilde (`~`) character to the user's home directory path
1) To expand user permissions for a file
2) To retrieve the current logged-in username
3) To decrypt user configuration files
Correct Answer:

100. Why is robust exception handling (e.g., catching `FileNotFoundError`, `PermissionError`, `IOError`) critical in file handling code?

0) Because file systems are external resources subject to missing files, permission restrictions, disk full errors, and hardware faults
1) To satisfy Python syntax requirements
2) To speed up file reading performance
3) To prevent garbage collection from deleting open files
Correct Answer:
← Previous: Python Exception / Error Handling MCQs
Next →: Python Functions MCQs
Latest Java OOP MCQs

Latest Java OOP MCQs

Object-Oriented Programming (OOP) is the core paradigm underlying Java, designed to organize software design around data, or objects, rather than…

By MCQs Generator
No Image

C++ Inheritance and Polymorphism - MCQs

1. What is the primary function used to open a file in Python? 0) file_open() 1) open() 2) read_file() 3)…

By MCQs Generator
Python Arrays MCQs

Python Arrays MCQs

Unlike many other programming languages, Python does not have a built-in static array data structure in its core syntax, instead…

By MCQs Generator