Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What should be the output of below program? main() { } int a = 1; switch(a) { case 1: cout < Which of the

image

image

image

image

image

image

image

image

What should be the output of below program? main() { } int a = 1; switch(a) { case 1: cout < 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 * 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 < What will be the output of the following C++ code? * #include 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

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction to Programming with C++

Authors: Diane Zak

8th edition

978-1285860114

More Books

Students also viewed these Programming questions

Question

What should be the basis for incentive payments?

Answered: 1 week ago

Question

What should be the entry when goods are purchased at a discount?

Answered: 1 week ago

Question

Evaluate 3x - 1 / x - 1. lim

Answered: 1 week ago

Question

Why is control important to companies considering the FDI decision?

Answered: 1 week ago

Question

Difference between truncate & delete

Answered: 1 week ago