Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CIS 251 Exam 1 Study Guide Your first exam will have 50 questions (technically 4

ID: 3746520 • Letter: C

Question

CIS 251 Exam 1 Study Guide Your first exam will have 50 questions (technically 41, but one is a fill in the blank program with 10 blanks). Each question will be worth 2 points. The majority of questions are multiple choice. What is the name for the set of rules that must be followed when writing a program? What is source code? What do compilers do? What are the definitions for the following parts of a program: operators, punctuation, key words, and programmer-defined identifiers? What is a statement? What are the three primary activities that a program performs (IPO)? What does an operator do? Which programming step uncovers syntax errors in your program (editing, linking, compiling, or execution)? What is hardware? Be familiar with the various types of hardware covered in class. Chapter 2 What is the difference between a character literal and a string literal? What does a preprocessor directive start with? What is variable scope? How do you assign a value of “Jane” to a string variable called name that has already been declared? What does every complete C++ program have to have? What object is used in C++ to display things to the screen? Be able to recognize print statements in code. Know how to print spaces, new lines, and variable values to the screen. Given cout statements, be able to determine what will print to the screen. What symbols are used to define single and multi-line comments in C++? What are two ways to print a new line to the screen? What is a string literal? What does it look like in code?

Explanation / Answer

Answer)

1.The name for the set of rules that must be followed when writing a program is the coding best practices, which includes readability, naming, formatting, commenting.

2. Source code can be defined as a set of instructions and statements to be compiled or assembled into an executable computer program.

3. A compiler transforms a source code written in any programming language into a machine languange, readable by the computer to process the program logic.