C debugging questions with answers pdf12/13/2022 ![]() Every full binary tree is also a complete binary tree.ĭ. Every complete binary tree is also a full binary tree.Ĭ. Every binary tree is either complete or full.ī. Which of the following is a true about Binary TreesĪ. What is the time complexity of pop() operation when the stack is implemented using an array?Įxplanation: pop() accesses only one end of the structure, and hence constant time.ġ2. Removing items from an empty stackĮxplanation: Removing items from an empty stack is termed as stack underflow.ġ1. Accessing item from an undefined stackĪnswer – C. Piling up of chairs one above the other is based on LIFO, people standing in a line is a queue and if the service is based on priority, then it can be associated with a priority queue.ġ0. Piling up of chairs one above the otherĮxplanation: Stack follows Last In First Out(LIFO) policy. Offer services based on the priority of the customerĪnswer – A. People standing in a line to be serviced at a counterĬ. Piling up of chairs one above the otherī. Which of the following real-world scenarios would you associate with a stack data structure?Ī. When we pass an array as a function argument, the base address of the array will be passed.ĩ. In C, if you pass an array as an argument to a function, what actually gets passed?ĭ. Which of the following allows function overloading in C++?īoth type and number of arguments can be overloaded.Ĩ. But fmod() performs floating point divisions.ħ. This function is the same as the modulus operator. Remainder cannot be obtain in floating point division.įmod(x,y) – Calculates x modulo y, the remainder of x/y. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?ĭ. Which of the following is not a Script Programming language?Įxplanation: All the options are Script Programming LanguagesĦ. Which of the following is not an OOP language?Įxplanation: C is not an object-oriented languageĥ. ptr is a pointer to an array of 10 integersĮxplanation: However, ptr is a pointer to an array of 10 integersĤ. ptr is an array of pointers to 10 integersĪnswer – A. ![]() ptr is a pointer to an array of 10 integersĬ. What does the following declaration mean?Ī. But modern compilers will take care of this kind of errors.ģ. If the index of the array size is exceeded, the program will crash. The program may crash if some important data gets overwritten The array size would appropriately grow.Īnswer – C. The program may crash if some important data gets overwritten.ĭ. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of an array?Ĭ. When we pass an array as a function argument, the base address of the array will be passed.Ģ. In C, if you pass an array as an argument to a function, what actually gets passed?Ĭ.Address of the last element of an array HCL Technical Questions and Answers with Explanationġ. Competitors can download HCL Technical Questions and Answers in PDF. Therefore, aspirants should practice each and every question without fail. For the sake of applicants, we have listed HCL Technical Questions and Answers For Freshers with proper explanation. Therefore, students can improve their technical knowledge by practicing HCL Technical Questions and Solutions. Most of the companies, especially MNC’s hire people based on their technical skills only.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |