Quick sort and merge sort algorithms are based on the divide and conquer algorithm which works in the recursive manner. Recursion is used in Quick sort and merge sort. In Quick sort and merge sort, the larger problem is divided into smaller problem then later after solving smaller problem we...
25. Which of the following is not possible statically in C language? a) Jagged Array b) Rectangular Array c) Cuboidal Array d) Multidimensional Array View Answer 26. Which of the following return-type cannot be used for a function in C? a) char * b) struct c) void d) none of the ...
Destructors in Class 4. Arrays and Strings The section contains multiple choice questions and answers on array and string operations, comparison, searching and modifying of strings and the usage of ref, out and variable arguments. Array and Initialization Basic Operation on Strings String Class with...
Data structures like Hash Tables, Trees, Graphs etc are some of the type of data structures easily found in the computer languages. MCQs (Multiple Choice Questions) Q1 Provide the format for the representation of string in the memory in C language? Represented as an array of characters Can ...
This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Regular Expressions”. 1. Which module in Python supports regular expressions? a) re b) regex c) pyregex d) none of the mentioned View Answer 2. Which of the following creates a pattern object?
c) Data structure like queue or stack cannot be implemented d) There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size View Answer 3. Which data structure is used for implementing recursion?
c) for() d) if() View Answer24. What will be the output of the following Java program?class recursion { int func (int n) { int result; if (n == 1) return 1; result = func (n - 1); return result; } } class Output { public static void main(String args[]) { recu...