Q 1: | The three aspects of Quantization, programmers generally concerned with are: |
(1) | Coding error, Sampling rate and Amplification |
(2) | Sampling rate, Coding error and Conditioning |
(3) | Aperture time, Coding error and Strobing |
(4) | Sampling rate, Aperture time and Coding error |
Correct Answer: Sampling rate, Aperture time and Coding error | |
Q 2: | A Ring, refers to a record chain, the last of which refers to the first record, in the chain, is called a/an |
(1) | Location |
(2) | Pointer |
(3) | Loop |
(4) | None of the above |
Correct Answer: Pointer | |
Q 3: | Top-down programming is |
(1) | A group of related fields |
(2) | A map of the programmer's view of the data |
(3) | An approach in which the top module is first tested then program modules are added from the highest level to the lowest level |
(4) | A series of group of components that perform one or more operations of a more complex system |
Correct Answer: An approach in which the top module is first tested then program modules are added from the highest level to the lowest level | |
Q 4: | You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective? |
(1) | Public |
(2) | Private |
(3) | Protected |
(4) | Transient |
Correct Answer: Protected | |
Q 5: | What will be the output of the program?
|
(1) | j=-1 |
(2) | j=1 |
(3) | j=0 |
(4) | Compilation fails |
Correct Answer: j=0 | |
Q 6: | Which of the following statements are correct about an ArrayList collection that implements the ¡Enumerable interface? 1. The ArrayList class contains an inner class that implements the IEnumerator interface. |
(1) | 1 and 2 only |
(2) | 1 and 3 and 4 only |
(3) | 2 and 5 only |
(4) | All of the above |
Correct Answer: 1 and 3 and 4 only | |
Q 7: | What does the following declaration mean? int(*ptr)[10]; |
(1) | ptr is array of pointers to 10 integers |
(2) | ptr is a pointers to an array of 10 integers |
(3) | ptr is an array of 10 integers |
(4) | ptr is an pointers to array |
Correct Answer: ptr is a pointers to an array of 10 integers | |
Q 8: | A program P reads in 500 integers in the range [0,100] representing the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies? |
(1) | An array of 50 numbers |
(2) | An array of 100 numbers |
(3) | An array of 500 numbers |
(4) | A dynamically allocated array of 550 numbers |
Correct Answer: An array of 50 numbers | |
Q 9: | The reason for using pointers in a C-program is |
(1) | Pointers allow different functions to share and modify their local variables |
(2) | To pass large structures so that complete copy of the structure can be avoided. |
(3) | Pointers enable complex "linked" data structures like linked lists and binary trees. |
(4) | All of the above |
Correct Answer: All of the above | |
Q 10: | Embedded pointer provides a/an |
(1) | Secondary access |
(2) | Physical record key |
(3) | Inverted index |
(4) | All of these |
Correct Answer: Secondary access | |