Question: 1. A programming language has both vocabulary and punctuation. Programs must be written in a programming language. True OR False 2. ___________ rules determine what

1. A programming language has both vocabulary and punctuation. Programs must be written in a programming language.

True OR False

2. ___________ rules determine what program statements actually mean. (In other words, what are they asking the computer to do?)

a.

function

b.

semantic

c.

comment

d.

syntax

3. ___________ rules dictate what words and punctuation can be used in program statements, and what order they must be written in.

a.

function

b.

semantic

c.

comment

d.

syntax

4. Which of the following statements about comments is false?

a.

You can turn the second half of a line into a comment using the // symbols.

b.

// will allow you to create a one line comment

c.

Comments are not important when you write a program

d.

/* and */ allow you to create a multiple line comment

5. What is the output of the following code?

// cout << "Hello"; cout << "My"; // cout << "Friend";

a.

nothing is printed

b.

HelloMyFriend

c.

Hello My Friend

d.

Hello My Friend

e.

My

6. What is the output of the following code?

/* cout << "Use "; cout << "the "; cout << "Force"; */

a.

the Force

b.

nothing is printed

c.

UsetheForce

d.

Use the Force

e.

Use the Force

7. A comment is a program statement with instructions the computer must carry out.

True

False

8. A ___________ is a set of instructions that tell the computer what to do and how to do it.

a.

programming language

b.

semantic

c.

program

d.

syntax rule

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!