Array Operations - Section 1 Multiple Questions and Answers.




21.Which of the following concepts make extensive use of arrays?
A. Binary trees
B. Scheduling of processes
C. Caching
D. Spatial locality

22.Which of the following operations is not O(1) for an array of sorted data. You may assume that array elements are distinct:
A. Find the ith largest element
B. Delete an element
C. Find the ith smallest element
D. All of the above

23.Which of the following is not possible with an array in C programming language ?
A. Declaration
B. Definition
C. Dynamic Allocation
D. Array of strings

24.Index of arrays in C programming language starts from?
A. 0
B. 1
C. either 0 or 1
D. undefined

25.Arrays are best data structures
A. for relatively permanent collections of data
B. for the size of the structure and the data in the structure are constantly changing
C. for both of above situation
D. for non of above situation

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers