A programmer mistakenly writes gor instead of for


Asked by admin @ in Computer Science viewed by 17553 People


Class brush{

private:integer size,rcodefunction getdata() { ... }// Statement 1public:integer name // Statement 2function putdata() { ... }}function main{brush b1,b2print b1.name // Statement 3b2.getdata() //Statement 4}​

Answered by admin @


} a) n equals 1 (ans) b) n equals 2 c) n>=1 d) n>1 In which of the following situations can a constructor be invoked? a) When an object is created(ans) b) When an object is assigned the value 0 c) Only at the end of the code d) When the scope of the object is over A programmer prepares a questionnaire with “true or false” type of questions. He wants to define a data type that stores the responses of the candidates for the questions. Which of the following is the most suited data type for this purpose? a) Integer b) Boolean(ans) c) Float d) Character 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 this method called? a) Selection sort b) Insertion sort c) Heap sort (ans) d) Quick sort A programmer mistakenly writes “gor” instead of the keyword “for” used in loops, while writing a program in C++.what will this result in?

a) The code would not compile. (ans) b) The code would give an error while execution. c) The code may work for some inputs and not for the others. d) The code would not create any problem. A programmer writes a sorting algorithm that takes different amount of the time to sort two different lists of equal size. what is the possible difference between the two lists? a) All number in one lists are more than 100 while in the other are less than 100. b) The ordering of numbers with respect to the magnitude in the two lists has different properties.(ans) c) One list has all negative numbers while the other has all positive numbers. d) One list contains 0 as an element while the other does not. Refer to the pseudo code given in the ‘passage’. The code is similar to that in C++ and is self-explanatory. An accessible member function and a data member for an object are accessed by the statements objectname.functionname and objectname.datamembername, respectively. Which statement should be deleted from the code to rectify the error in it? Class brush { Private: Integer size,c rcode function getdata(){…..}//statement 1 public:

Answered by black892 @


C

Answered by sanjana11 @


Gu

Answered by tanuzz59 @


❤da

Do you know the better answer?

Similar Questions

What occurs once in a year once in a day

Asked by admin @ in Math viewed by 138 persons

Can U Tell Me........ What occurs!Once in a Year,Once in a Day,But never in a Week ?

How to write a letter in hindi to friend

Asked by admin @ in Hindi viewed by 222 persons

Hindi letter write a letter to to your friend telling her about your visit to a tourist spot

Which animal have 32 brains

Asked by admin @ in Biology viewed by 169 persons

Name the animal which have 32 brain ??

What type of clothes we should wear in summer

Asked by admin @ in Science viewed by 126 persons

What type of clothes should we wear in summer

When running in cold weather which one of the following

Asked by admin @ in Science viewed by 171 persons

When running in cold weather, which one of the following materials is not recommended for layering next to the skin?

Which activity will help you improve your verbal communication skills

Asked by admin @ in World Languages viewed by 128 persons

Which activity will help you improve your verbal communication skills? learning to pronounce words correctly learning about gestures used by other cultures learning correct posture taking care with your appearance

The crowding out effect of expansionary fiscal policy suggests that

Asked by admin @ in Social Studies viewed by 107 persons

The crowding-out effect of expansionary fiscal policy suggests that A. government spending increases at the expense of private investment B. imports replace domestic production private investment increases at the expense …

With which normal distribution is the standard normal curve associated

Asked by admin @ in Mathematics viewed by 112 persons

What is the difference between a standard normal distribution and a nonstandard normal​ distribution? Choose the correct answer below. A. The standard normal distribution has a standard deviation that is …

Which of the following statements about tobacco products is true

Asked by admin @ in Health viewed by 156 persons

Which of the following statements about tobacco products is TRUE? a. Tobacco products contain over 4,000 different chemicals. b. All chemicals found in tobacco products are carcinogens. c. Cigarettes are …

What two things are being compared in this epic simile

Asked by admin @ in English viewed by 127 persons

What two things are being compared in this epic simile?

Why is human resource considered the most important resource

Asked by admin @ in Geography viewed by 145 persons

1.Why human resource is considered to be the best resource ?Explain . 2.Suggest any 3 ways to turn a large population into a productive asset .

Transitional word used after a semicolon in a compound sentence

Asked by admin @ in English viewed by 163 persons

Which accurately explains the correct use of a semicolon the selected sentence? Hawaii is the hottest state; Alaska is the coldest. A) A semicolon can link two closely related independent …

Gibbs energy for the decomposition of al2o3 at 500

Asked by admin @ in Chemistry viewed by 149 persons

The gibbs energy for the decomposition of Al2O3 ​at 500 0 ​C is +960kJ/mol .the pot. difference needed for electrolytic reduction of Al2O3​ is?

Nitrogen and hydrogen react to form ammonia balanced equation

Asked by admin @ in Science viewed by 188 persons

hydrogen gas combines with nitrogen to form Ammonia translate the following statement into chemical equation and then balance them

What are macronutrients and why are they called macronutrients

Asked by admin @ in Biology viewed by 51 persons

What is macronutrients and why are they called macronutrients

Describe the function of the cilia in the respiratory tubes

Asked by admin @ in Biology viewed by 104 persons

Describe the function of the cilia in the respiratory tubes?

A reduction of 20 in the price of rice enables

Asked by admin @ in Math viewed by 133 persons

A reduction of 20% in the price of rice enables a person to buy 3.5 kg more rice for Rs 385. The original price of rice is :| (a) …

A copper wire is wound on a wooden frame

Asked by admin @ in Physics viewed by 119 persons

A copper wire is wound on a wooden frame, whose shape is that of an equilateral triangle. If the linear dimension of each side of the frame is increased by …

Social ethical and legal aspects of marketing in india pdf

Asked by admin @ in Business Studies viewed by 120 persons

What is social ,ethical and legal aspect of marketing?

Where is jhansi located in india political map

Asked by admin @ in Geography viewed by 185 persons

Where is jhansi in india political map and adjacent countries?

Which of the following is a function of the cytoskeleton

Asked by admin @ in Biology viewed by 177 persons

4. Which of the following is a function of the cytoskeleton? A. Helps a cell keep its shape B. Contain DNA C. Surround the cell D. Helps make proteins 5. …

The declaration of war in 1812 was strongly opposed by

Asked by maham237 @ in History viewed by 129 persons

New England merchants the War Hawks western farmers southern Republicans

A metal with low melting and boiling point is

Asked by admin @ in Chemistry viewed by 180 persons

Name three metals that have low melting and boiling point​

What happens when zinc reacts with copper sulphate solution

Asked by admin @ in Science viewed by 132 persons

What happens when zinc react with copper sulphate solution

Which description can be written as the expression 6b 5

Asked by maham237 @ in Mathematics viewed by 163 persons

6b+5? a) the difference of six times a number and five b) the sum of six times a number and five c) quotient of six times a number and five …

Find the square root of 529 by division method

Asked by admin @ in Math viewed by 121 persons

Find the square root by division method 529

Darryl finds a bottle of what looks like clear water

Asked by maham237 @ in Chemistry viewed by 145 persons

Darryl finds a bottle of what looks like clear water, with dirt settled at the bottom. When he shakes the bottle, the water gets dirty. Which term best describes the …

Main container for tr td and th is

Asked by admin @ in Computer Science viewed by 96 persons

16. Main container for <TR>, <TD> and <TH> is A.<TABLE>B.<GROUP>C.<DATAD.All of these​please give me answer fast

A single electron in an ion has ionization energy

Asked by admin @ in Chemistry viewed by 126 persons

A single electron in an ion head ionisation energy equal to 217.6 eV. What is the total number of neutrons present in one ion of it?

What economic factors and conditions converged in the late 1920s

Asked by maham237 @ in History viewed by 128 persons

What economic factors and conditions converged in the late 1920s to plunge the nation into the Great Depression? Why did President Hoover’s response to the Great Depression fail?

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 17553 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 12660 persons


Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 9284 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 9251 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 7867 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7227 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 5836 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5070 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 4605 persons


Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4468 persons



Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 4435 persons


Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 4421 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4384 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4044 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 3892 persons