Answer the following statements true (T) or false (F)
1) Comments cause the computer to print the text after the // on the screen when the program is executed.
2) The escape sequence \n, when output with cout and the stream insertion operator, causes the cursor to
position to the beginning of the next line on the screen.
3) All variables must be declared before they’re used.
4) All variables must be given a type when they’re declared.
5) C++ considers the variables number and NuMbEr to be identical.
1) False. Comments do not cause any action to be performed when the program is executed. They’re used to document programs and improve their readability.
2) True.
3) True.
4) True.
5) False. C++ is case sensitive, so these variables are different.
You might also like to view...
To use the AutoCorrect Options button to convert a hyperlink to regular text, click ____ on the AutoCorrect Options menu.
A. Edit Hyperlink B. Select Hyperlink C. Convert Hyperlink D. Undo Hyperlink
When setting up a mail merge document to prepare a listing of member names, phone numbers, and other contact information, select ____ as the type of document.
A. Directory B. Envelopes C. Labels D. Letters
Who assigns Autonomous System Numbers (ASNs)?
A. IANA B. IETF C. Autonomous System administrator D. Network administrator
Case-Based Critical Thinking Questions ? Case 1: MaidToOrderThe database for a cleaning service company contains the following table, named tblCustomer, that includes customer invoice data. The InvoiceNum, CustomerNum, and InvoicePaid fields contain text. The InvoiceDate field contains dates. The InvoiceAmt field contains numbers. InvoiceNum CustomerNum InvoiceDate InvoiceAmt InvoicePaid 631 13020 01/15/2013 200.00 Y 632 15411 01/20/2013 685.00 Y 633 10002 01/23/2013 75.00 N 634 13104 01/23/2013 150.00 N 635 12124 01/26/2013 75.00 Y 636 13328 02/02/2013 350.00 Y 637 10206 02/02/2013 175.00 N 638 10334 02/07/2013 450.00 Y Which data type would you use for the InvoicePaid field?
A. char(1) B. varchar(10) C. char(A-F) D. varchar(A-F)