Exercise W3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Exercise

1. State whether the below identifier is valid or not?

Identifier Valid [yes/no]


jumlah_markah
TOTAL-SUM
Total_
_101sum_
T_sum
4Value_
_scoreV1
average_
_reminder_
overall score

2. For the following C++ coding what is the output ?


cout<< "Mom, you're a wonderful mother \nSo gentle, yet so strong.\nThe many ";
cout<<"ways you sho1w you care"<<endl<<"Always make me feel I belong. ";

3. Write a C++ statement to display output as below.

True friends are by your side through it all.


True friends are there to catch you when you fall.
True friends give your life a happy lift.
True friends are a most precious gift.

True friends really know you but love you anyway.


True friends are those who are always asking you if you're okay.
True friends know that hate is a very strong word.
True friends don't believe every story they've heard.

4. Find and correct the syntax errors.


cout<<"You make my life much better:<endl;
cout<<"The best father I know is you. "\n;

You might also like