Question: 5 MC question about programming (java language) What kind of data does a subclass of read? Select one: a. characters b. strings c. instances of




What kind of data does a subclass of read? Select one: a. characters b. strings c. instances of StringBuilder d. bytes When using buffered outputs, one must always call right before closing it, to ensure that all the data get written Select one: True False Why is more efficient than for reading a file? Select one or more: a. because it only reads printable bytes b. because it reads blocks of characters instead of single characters c. because it makes fewer calls to the operating system For each of the following statements, select which data structure it applies to: it is used to implement depth-first search the add operation inserts an element at the back the removal operation takes out the last element that was odded What is the best way to implement a stack or a queue so that it can hold an arbitrary number of elements? Select one: a. By creating a bigger array when the stack or queue is full, and copying the elements from the original array. b. Using linked lists to store the collection of elements. c. Using an array, and throwing an exception when the stack or queue is full
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
