Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started