Question

In: Computer Science

1) Which of the following is/are true? - C++ programs can run on different platforms, like...

1) Which of the following is/are true?

- C++ programs can run on different platforms, like Windows and macOS, without being recompiled.

- The source code for a program can include code from the C++ standard library.

- The machine language that results from compiling a program is easy for a human to read.

- All of the above

2) What feature of an IDE can help you identify and fix syntax errors?

-the code completion feature

-the automatic compilation feature

-the syntax integration feature

-the error detection feature

3) As you develop a C++ program, you can use an IDE to

-enter and edit the source code

-compile the source code

-run the application

-all of the above

-both b and c

4) You can use a console application to

-get data from the user

-display data to the user

-use a graphical user interface to interact with the user

-all of the above

-a and b only

5) An IDE typically stores all of the files for a program in a

-chapter

-library

-project

-header

6) Which of the following is used to convert the source code for a program to object code?

-linker

-preprocessor

-compiler

-none of the above

7) Which of the following is not a benefit of a typical IDE for C++?

-The syntax of your code is checked as you enter it.

-The debugging features make it easier for you to find bugs in your applications.

-The IDE helps you complete code as you type.

-Your code compiles and runs faster.

8) In an IDE, what tool do you use to enter and edit source code?

-debugger

-program builder

-compiler

-code editor

9) Which of the following is not a reason for learning C++?

Its syntax is easier to learn than the syntax of other languages like C# and Java.

It’s one of the fastest and most efficient languages available.

It’s an object-oriented language.

It’s designed to work with many operating systems and devices.

10) A syntax error occurs when

the C++ compiler can’t be located

the machine language can’t be interpreted properly

there’s a syntax error in a C++ statement

the program doesn’t contain a main() function

Solutions

Expert Solution

1.Ans. The source code for a program can include code from the C++ standard library. A source code is a code which is wrote by human easy to understand as it is written in high level languages.Now in a source code we use header files such as iostream.h(input output stream),math.h,stdlib.h etc these all are header files which are in the C++ standard library.

2.Ans. the code completion feature This feauture helps to identify and corrects errors which helps to save time.

3.Ans All the above The IDE provides the programmer to write the souce code in high level language C++ compile it into object code and also run it.

4.Ans.  a and b only A console appllication is a text based interaction which takes input from user in text form an display the result in text form. GUI is not needed for this application to use.

5.Ans.  Project An IDE Stores stores all the file of a program in project.It is a group of files that together forms a program.

6.Ans. Compiler compiles the source code HLL(High Level Language) into the object code /machine code(low Level language).

7.Ans.  Your code compiles and runs faster In typical IDE for  C++ code compilation and excution has to be perfect.Although it is great to run the program faster but it is better that code is optimised and run well.

8. Ans.  Code Editor Programmer uses Code editor that helps to write and edit source code in a IDE.It is used to create programs or software.It helps to create coding for building of a program.

9.Ans.  Its syntax is easier to learn than the syntax of other languages like C# and Java  C++ is more complicated than that of Java .Java is easy to learn It as it is a easy  high level langauage and its syntax is easier than C++.

10.Ans.  there’s a syntax error in a C++ statement If the syntax while writting the code is there is a spelling mistake or a semicolon comma missing or any operator keywords missing.


Related Solutions

Which packet analyzer can run on more than two OS platforms? Explain
Which packet analyzer can run on more than two OS platforms? Explain
Which of the following is true in the short run?
Which of the following is true in the short run? Multiple Choice  The average total cost curve is a parabola that opens to the right along the X axis. The average total cost curve is a parabola that opens up along the Y axis. The average variable cost curve is a parabola that opens up along the X axis. The marginal cost curve is a parabola that opens down along the Y axis.
1)Which of the following statements is NOT TRUE about different types of Cancers? Chromosomal abnormalities can...
1)Which of the following statements is NOT TRUE about different types of Cancers? Chromosomal abnormalities can never lead to cancer Genetically modified HSV virus has been approved for treating Melanoma Smoking is the leading cause for lung cancer ---------- 2) Which of the following is NOT linked to aggression in human beings? Mutation in serotonin receptor gene Monoamine Oxidase type A gene Karyotype XYY FMR 1 gene Some viruses like HPV can cause cervical cancer 3)Which of the following is...
1. Under monopolistic competition, which of the following is true: A) In the short run, the...
1. Under monopolistic competition, which of the following is true: A) In the short run, the firm behaves as a firm in perfect competition. B) In the long run equilibrium, firms will make positive profits. C) If there are economic profits, in the long run new firms enter leading to a decrease in demand for the existing firm. D) All of the above are true. E) None of the above are true 2. In the market equilibrium, a single-price monopolist...
.1 List and explain the different means by which health promotion programs can be funded. 2....
.1 List and explain the different means by which health promotion programs can be funded. 2. What is a budget? What are the major components of a budget? 3. Identify what you see as the biggest ethical concern of health promotion programming; explain your choice.
1. Which of the following statements is true? a.Macroeconomic policies are always effective in the short-run...
1. Which of the following statements is true? a.Macroeconomic policies are always effective in the short-run because output is at its potential level. b. Macroeconomic policies are always effective in the short-run because they affect output through AD, but not prices. c. Macroeconomics policies are always effective in the long-run because output is at its potential level. d. Macroeconomic policies are effective in the short-run as well as in the long-run because both output and price are at their potential...
1. Which of the following statements is true? a.Macroeconomic policies are always effective in the short-run...
1. Which of the following statements is true? a.Macroeconomic policies are always effective in the short-run because output is at its potential level. b. Macroeconomic policies are always effective in the short-run because they affect output through AD, but not prices. c. Macroeconomics policies are always effective in the long-run because output is at its potential level. d. Macroeconomic policies are effective in the short-run as well as in the long-run because both output and price are at their potential...
Which programs (C and assembly, etc.) of xv6 has the codes for the boot procedure? Can...
Which programs (C and assembly, etc.) of xv6 has the codes for the boot procedure? Can we use printf() to print a message during the boot process and why?
Which programs (C and assembly, etc.) of xv6 has the codes for the boot procedure? Can...
Which programs (C and assembly, etc.) of xv6 has the codes for the boot procedure? Can we use printf() to print a message during the boot process and why?
1) Which of the following statements is true? A. A change in the market price can...
1) Which of the following statements is true? A. A change in the market price can only shift the demand curve. B. A decrease in supply causes equilibrium price to rise; the increase in price then results in a decrease in demand. C. If both demand and supply increase there must be an increase in equilibrium price; equilibrium quantity may either increase or decrease. D. If demand decreases and supply increases one cannot determine if equilibrium price will increase or...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT