Fill in the blank
Outputting Statements
Comments
SI Information
100

 A computer _______ consists of instructions executing one at a time 

 A computer program  consists of instructions executing one at a time

100

What does cout stand for?

Characters out

100

Is this a valid statement?

cout << "Hello" // hello user! ;

No it is not. The semi colon is at the wrong location

cout << "Hello" ; // hello user!

100

What does SI stand for?

Supplemental instruction

200

When a program gets data, perhaps from a file, keyboard, touchscreen, network, what is it called.

Input

200

What does endl do in a cout statement

cout << endl;

It creates a newline

200

What are the 2 ways to do a comment in c++?

Give an example of each

// comment

/* comment */

200

What are the 5 parts of an SI session?

Greeting, Agenda, Warmup, Session, and Closing

300

When a  program puts that data somewhere, such as to a file, screen, network, etc what is it called?

Output

300

Indicate the actual output of each statement. Assume userAge = 55

cout << "You are " << userAge << " years.";

You are 55 years.


300

Is this statement valid?

 cout << "Keep calm";

   cout << endl; 

   cout << "and";

   cout << endl; 

yes it is valid.

Keep calm

and

carry on

 

300

What is the goal of an SI session

The goal is to have students learn study skills and collaborate tougher 

400

Programs use ______ to refer to data

Programs use variables to refer to data

400

Create a variable and write a cin statement to receive its input

int x;

cin>> x;

400

What is the output?

   int wage = 2

   cout << "Salary is ";

   cout << wage * 4 * 5;

   cout << endl;

 


Salary is 40


400

When and where are my office hours?

Mondays 4:00PM-5:30PM in the Learning Center

Wednesdays 5:00PM-6:30PM in the Learning Center


500

 A program performs computations on that data, such as adding two values like x + y.

What is a process?

500

Write a cout statement (can be anything)

cout << "Hello world";

500
Is this valid?

cout << x " Marks the spot" << endl;

No it is not valid. There should be >> in between x and the the "Marks the spot

cout << x  << " Marks the spot" << endl;

500
When and where are my SI sessions? 

Mondays 11:00AM-12:30PM in Kremen Education (ED) 170

Thursdays 3:30PM-5:00PM in Family Food Science (FFS) 213