C-Programming-Basic (Set 1)
C-Programming-Basic (Set 1)
1 of 1 sets
8. What is an array?
A. an array is a collection of variables that are of the dissimilar data type.
B. an array is a collection of variables that are of the same data type.
C. an array is not a collection of variables that are of the same data type.
D. none of the above.
Answer:B
11. What is the right way to access value of structure variable book{ price, page }?
A. printf("%d%d", book.price, book.page);
B. printf("%d%d", price.book, page.book);
C. printf("%d%d", price::book, page::book);
D. printf("%d%d", price->book, page->book);
Answer:A
31. The _______ memory allocation function modifies the previous allocated space.
A. calloc
B. free
C. malloc
D. realloc
Answer:D
34. The worst case time complexity of AVL tree is better in comparison to binary
search tree for
A. search and insert operations
B. search and delete operations
C. insert and delete operations
D. search, insert and delete operations
Answer:D