What should be the output of below program? main() { } int a = 1; switch(a)...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What should be the output of below program? main() { } int a = 1; switch(a) { case 1: cout<<"One": case 2: cout<<"Two"; case 3: cout<<"Three"; default: cout<<"Default"; } Default Compilation Error One Two Three One Where does the return statement returns the execution of the program? main function same function body function caller function Which of the following is used for comments in C++? * both // comment or /* comment */ /* comment */ O // comment */ // comment What are mandatory parts in the function declaration? * O parameters, variables O return type, function name O parameters, function name return type, function name, parameters Can a for loop contain another for loop? * O Runtime Error No OYes O Compilation Error How many choices are possible when using a single if-else statement? * 04 02 O 3 O 1 Which of the following is not a comparison operator in C++ language? O O о <= == 11 * The maths function acos(x) stands for Inverse cos(x) O csc(x) Inverse sin(x) O Inverse Tan(x) Which from the following is not a maths functions? * O exp() time () O log() O pow () //What is the output of below program? main() { int a = 10; cout<<a++; } 11 10 12 Not defined What should be passed in parameters when function does not require any parameters? tab space * blank space void both void & blank space What will be the output of the following C++ code? * #include <iostream> using namespace std; void fun(int, int); main() { int x = 10; fun(x, x); cout << x; void fun(int x, int y) { } x = 20; y = 10: O compile time error O 20 O 10 O 30 What should be the output of below program? main() { * } int a = 1; switch(a) { case 1: cout<<"One"; case 2: cout<<"Two"; case 3: cout<<"Three"; default: cout<<"Default"; } Default Compilation Error OneTwoThree One Where does the return statement returns the execution of the program? main function same function body function caller function What should be the output of below program? main() { } int a = 1; switch(a) { case 1: cout<<"One": case 2: cout<<"Two"; case 3: cout<<"Three"; default: cout<<"Default"; } Default Compilation Error One Two Three One Where does the return statement returns the execution of the program? main function same function body function caller function Which of the following is used for comments in C++? * both // comment or /* comment */ /* comment */ O // comment */ // comment What are mandatory parts in the function declaration? * O parameters, variables O return type, function name O parameters, function name return type, function name, parameters Can a for loop contain another for loop? * O Runtime Error No OYes O Compilation Error How many choices are possible when using a single if-else statement? * 04 02 O 3 O 1 Which of the following is not a comparison operator in C++ language? O O о <= == 11 * The maths function acos(x) stands for Inverse cos(x) O csc(x) Inverse sin(x) O Inverse Tan(x) Which from the following is not a maths functions? * O exp() time () O log() O pow () //What is the output of below program? main() { int a = 10; cout<<a++; } 11 10 12 Not defined What should be passed in parameters when function does not require any parameters? tab space * blank space void both void & blank space What will be the output of the following C++ code? * #include <iostream> using namespace std; void fun(int, int); main() { int x = 10; fun(x, x); cout << x; void fun(int x, int y) { } x = 20; y = 10: O compile time error O 20 O 10 O 30 What should be the output of below program? main() { * } int a = 1; switch(a) { case 1: cout<<"One"; case 2: cout<<"Two"; case 3: cout<<"Three"; default: cout<<"Default"; } Default Compilation Error OneTwoThree One Where does the return statement returns the execution of the program? main function same function body function caller function
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
What should be the basis for incentive payments?
-
What should be the entry when goods are purchased at a discount?
-
What should be the relationship between a manufacturing system and the enterprise system?
-
Evaluate 3x - 1 / x - 1. lim
-
Eberts Printing Company completed the following transactions during the year ended December 31: June 16 Received a 60-day, 5.5 percent note, dated June 16, for $ 2,160 from Carlos Office Supply for...
-
Lu Company had a beginning inventory of 400 units of Product Ribo at a cost of $8 per unit. During the year, purchases were: Feb. 20 600 units at $9 Aug. 12 300 units at $11 May 5 500 units at $10...
-
99 percent per month. In 2014, Boling resolved his suit against the gas can manufacturer. Shortly thereafter, Prospect sent Boling a Schedule of Purchases, asserting that Boling owed Prospect...
-
After reading an article about activity-based costing in a trade journal for the furniture industry, Santana Rey wondered if it was time to critically analyze overhead costs at Business Solutions. In...
-
Various people in the movie turn to Warren Buffett for advice and/or financial assistance, including Dick Fuld (Lehman Brothers), Lloyd Blankfein (Goldman-Sachs), Hank Paulson (Secretary of the...
-
Joseph Berio is a loan officer with the First Bank of Tennessee. Red Brick, Incorporated, a major producer of masonry products, has applied for a short-term loan. Red Brick supplies building material...
-
Comptech Ltd is a manufacturer of optical equipment. In September 2019, Ed Thompson the Chief Research Officer, attended a conference in Switzerland that focused on optical developments for the 21st...
-
Is there ever an occurrence of multiple places on Earth having the same isotherms, isobars, and isohyets in a line of isopleth? Explain.
-
1. A rocket in space (meaning air friction is non-existent) is burning its engines which creates a constant unbalanced forward force on the rocket. This constant force is applied to the rocket as...
-
What are your core beliefs (values) and their origins? the best 4 for leadership and teamwork and the reasons you feel that way and how did those core beliefs influence your perspective/approach to...
-
The characteristics of the dry cargo bulk freight market have caused some economists to conclude that it demonstrates many of the characteristics of the perfectly competitive market. (a) Explain the...
-
Often the term power is correlated with leadership. Nevertheless, power in leadership is far more complex than this term. Discuss the types of power and the significance of each type. Describe if...
-
i. Find the Laplace transform of the following function; t 0 1. f(t) =
-
Difference between truncate & delete
-
If necessary, create a new project named TryThis11 Project, and save it in the Cpp8\Chap09 folder. Create a program that displays the average of three integers. The program should pass the three...
-
Create a program that allows the user to enter an unknown number of sales amounts for each of three car dealerships: Dealership 1, Dealership 2, and Dealership 3. The program should calculate the...
-
The manager of Keystone Tile wants an application that displays the area of a rectangular floor, given its measurements in feet. It should also display the total cost of tiling the floor, given the...
-
In the January 1, 20X8, consolidated balance sheet, the amount of goodwill reported should be a. $0. b. $76,000. c. $95,000. d. $156,000. On January 1, 20X8, Ritt Corporation acquired 80 percent of...
-
In the December 31, 20X8, consolidated balance sheet, the amount of noncontrolling interest reported should be a. $200,000. b. $239,000. c. $251,000. d. $252,000. On January 1, 20X8, Ritt Corporation...
-
On January 1, 20X5, Post Company acquired an 80 percent investment in Stake Company. The acquisition cost was equal to Posts equity in Stakes net assets at that date. On January 1, 20X5, Post and...
Study smarter with the SolutionInn App