Join Telegram Channel for DXC exam Discussion & help!
Computer Programming

Consider the following: Class rocket

Computer Programming MCQ Questions with Solutions Choose the correct answer. A pseudo-code which is similar to that of c++ and self-explan…

A complete binary tree has a property that the value at each node is at least as large as the values at its children nodes. What is this binary tree known as??

Computer Programming MCQ Questions with Solutions A complete binary tree has a property that the value at each node is at least as large as the …

What does function overloading imply??

Computer Programming MCQ Questions with Solutions What does function overloading imply? A) Two or more functions with same but different parame…

How can a call to overloadedd function be ambiguos??

How can a call to overloadedd function be ambiguos?? A.  Two or more functions with equally appropriate signatures. B.   C.   D.   Answer: Opt…

If f(a,b) is called, what is returned?

function g(int n) { if (n > 0) return 1; else return -1; } function f(int a, int b) { if (a > b) return g(a-b); if (a < b) return g(-b+a); …

A programmer wants to program to print the largest number out of three inputted numbers. She writes the following program:

A programmer wants to program to print the largest number out of three inputted numbers. She writes the following program: int number1, number 2, n…

How are protected members of a base can be inherited in the derived class?

How are protected members of a base can be inherited in the derived class? A. Privately B. Publicly C. Protectedly D. Not inherited. Answer: Opt…

A programmer writes a sorting algorithm. The algorithm takes different amount of time to sort two different lists of equal size. What is the possible difference between the two lists?

A programmer writes a sorting algorithm. The algorithm takes different amount of time to sort two different lists of equal size. What is the possib…

Which of the following data structure may give overflow error,even though the current number of element in it is less than its size?

Which of the following data structure may give overflow error,even though the current number of element in it is less than its size? A. Simple que…

What will be the output of the following pseudo-code statements: integer a = 984, b=10 //float is a data-type to store real numbers. float c c = a / b print c

What will be the output of the following pseudo-code statements: integer a = 984, b=10 //float is a data-type to store real numbers. float c c = a /…

A sorting mechanism uses the binary tree concept such that any number in the tree is larger than all the numbers in the sub-tree below it. what is method called?

A sorting mechanism uses the binary tree concept such that any number in the tree is larger than all the numbers in the sub-tree below it. what is …

What is implied by the argument of a function ??

What is implied by the argument of a function ?? A.  Value passed to a function when it is called B.   C.   D.   Answer: Option A ( Value pass…

A stack is implemented in a linear array A[0...n-1]. A programmer writes the function given below to pop out an element from the stack.

stack is implemented as a linear array A[0…N-1]. Noor writes the following functions for popping an element from the stack…

A sorting algorithm traverses through a list, comparing adjacent elements and switching them under certain conditions. What is this sorting algorithm called?

A sorting algorithm traverses through a list, comparing adjacent elements and switching them under certain conditions. What is this sorting algorit…

In an implementation of a linked list, each node contains data and address. Which of the following could the address field possibly contain?

In an implementation of a linked list, each node contains data and address. Which of the following could the address field possibly contain? Op 1:…

What will happen if some indentations are made in some statements of a code written in C++?

What will happen if some indentations are made in some statements of a code written in C++? A. Faster execution of the code B. Lower memory require…

Consider a binary tree implementation. The root address is stored in variable root. Given the address of a node is variable node, its value, right and root could node address can be accessed using the following statements respectively node-> value ,node -> right, node-> left. Srikanth writes the following function to do a preorder traversal of the tree.

Consider a binary tree implementation. The root address is stored in variable root. Given the address of a node is variable node, its value, right …

A programmer writes a code snippet in which set of the three lines occurs 10 times in different pathway program what program concept should be used to shorten the code length??

A programmer writes a code snippet in which set of the three lines occurs 10 times in different pathway program what program concept should be use…

Identify the lower level format to which the computer converts a program in a higher language before it executes

Identify the lower level format to which the computer converts a program in a higher language before it executes A. English code B. Machinde Code …

A 10-bit unsigned integer has the following range:

A 10-bit unsigned integer has the following range: Option 1 : 0 to 1000  Option 2 : 0 to 1024 Option 3 : 1 to 1025 Option 4 : 0 to 1023 Answer: O…
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.