QUESTION 6 A single line comment in C++ language source code can begin with _____        a) // b)...

80.2K

Verified Solution

Question

Programming

QUESTION 6

A single line comment in C++ language source code can begin with_____

      
a) //
b) ;
c) :
d) /*

QUESTION 7

What is the output of the following program?

#include using namespace std; class abc {public: int i; abc(int i) { i = i; } }; main() { abc m(5);cout<

a)Garbage
b)5       
c)Compile Error
d)None of the answers

QUESTION 8

The following operator can be used to calculate the value of onenumber raised to another.

      
a)None of the answers
b) ^
c)**
d) ^^   

QUESTION 9

What is the output of the following program?

#include using namespace std; int main () { //local variable declaration: int x = 1; switch(x) { case 1 : cout<< \"Hi!\" << endl; break; default : cout <<\"Hello!\" << endl; } }

a) Hi
b)Hello
c)HelloHi
d)Compile Error

QUESTION 10

What is the output of the following program?

#include using namespace std; main() { int a[] ={1, 2}, *p = a; cout<      
a)2
b)1
c)Compile Error
d)Runtime Error

Answer & Explanation Solved by verified expert
4.1 Ratings (625 Votes)
6 A single line comment in C language    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students