Q1: Choose the correct answer with the explanation reason of your choice . 1. Which of the following is the default return value of functions in C++ ? a) int b) char c) float d) void 2. If an argument...


Q1: Choose the correct answer with the explanation reason of your choice .<br>1.<br>Which of the following is the default return value of functions in C++ ?<br>a) int<br>b) char<br>c) float<br>d) void<br>2.<br>If an argument from the parameter list of a<br>function is defined constant<br>then<br>a) It can be modified inside the function<br>b) It cannot be modified inside the function<br>c) Error occurs<br>d) Segmentation fault<br>3. From which function the execution of a C++ program starts?<br>a) start() function<br>b) main() function<br>c) new() function<br>d) end() function<br>4. Which of the following is important in a function?<br>a) Return type<br>b) Function name<br>c) Both return type and function name<br>d) The return type, function name and parameter list<br>5. Which of the following is the correct syntax to print the message in C++ language?<br>a) cout <<

Extracted text: Q1: Choose the correct answer with the explanation reason of your choice . 1. Which of the following is the default return value of functions in C++ ? a) int b) char c) float d) void 2. If an argument from the parameter list of a function is defined constant then a) It can be modified inside the function b) It cannot be modified inside the function c) Error occurs d) Segmentation fault 3. From which function the execution of a C++ program starts? a) start() function b) main() function c) new() function d) end() function 4. Which of the following is important in a function? a) Return type b) Function name c) Both return type and function name d) The return type, function name and parameter list 5. Which of the following is the correct syntax to print the message in C++ language? a) cout <"hello world="" !"="" b)="" cout="">< hello="" world="" !="" ;="" c)="" cout=""><"hello world="" !:="" d)="" none="" of="" the="">
6. Which of the following is the correct identifier?<br>a) $var_name<br>b) VAR_123<br>c) varname@<br>d) None of the above<br>7. Which of the following is the address operator?<br>a) @<br>b) #<br>c) &<br>d) %<br>8. Which of the following comment syntax is correct to create a single-line comment in<br>the C++ program?<br>a) //Comment<br>b) /Comment/<br>c) Comment//<br>d) None of the above<br>9. C++ is a<br>_ type of language.<br>a) High-level Language<br>b) Low-level language<br>c) Middle-level language<br>d) None of the above<br>10. For inserting a new line in C++ program, which one of the following statements can<br>be used?<br>a) \n<br>b) \r<br>c) \a<br>d) None of the above<br>

Extracted text: 6. Which of the following is the correct identifier? a) $var_name b) VAR_123 c) varname@ d) None of the above 7. Which of the following is the address operator? a) @ b) # c) & d) % 8. Which of the following comment syntax is correct to create a single-line comment in the C++ program? a) //Comment b) /Comment/ c) Comment// d) None of the above 9. C++ is a _ type of language. a) High-level Language b) Low-level language c) Middle-level language d) None of the above 10. For inserting a new line in C++ program, which one of the following statements can be used? a) \n b) \r c) \a d) None of the above

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here