Question: Q1. Declare an int variable named count, and a char variable named letter 2 pts) Q2. a) Assign the value 10 to the int variablex

 Q1. Declare an int variable named count, and a char variablenamed letter 2 pts) Q2. a) Assign the value 10 to theint variablex (2 pt) b) Assign the character G to the char

Q1. Declare an int variable named count, and a char variable named letter 2 pts) Q2. a) Assign the value 10 to the int variablex (2 pt) b) Assign the character G to the char variabley Q3. (2 pt) The following program code is incorrect. Rewrite it, using correct syntax for the comment. double 5annualReceiptsNY /declaration Q4. Mark the following identifiers either valid or invalid (5 pts) a) item#1 b) Sq Ft c) bin-2 d) PAY DAY e) num5 Q5. Write three consecutive output statements that print the following three lines: (2 pts) The moorn ls Q6. TRUE/FALSE (5 pts) 1. Reserved words can be used as variable names. 2. In a C++ program consisting of just one function, that function can be named either main () or Main) 3. The char data type is used to store multiple characters. 4. If a program statement is syntactically correct then it is logically correct. 5. The cin >> operator can read any whitespace, tabs, or newline character

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!