- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 43 study documents about .
43 results
Exam (elaborations)
Csci Ch 5
CSCI Ch 5 
 
1.	1) These are operators that add and subtract one from their operands. 
A)	plus and minus 
B) ++ and -- 
C)	binary and unary 
D)	conditional and relational 
E)	None of these: B 
2.	2) What is the output of the following code segment? n = 1; 
while (n <= 5) cout << n << ' '; n++;
Exam (elaborations)
C++ Programming Chapters 1-4 (Test 1)Questions And Answers
C++ PROGRAMMING CHAPTERS 1-4 (TEST 1)QUESTIONS AND ANSWERS 
 
 
1.	#include <iostream> using namespace std; int main() 
{ 
return 0; 
}: the parts required in every C++ program 
2.	comments: nonexecutable statements that are included in a program to provide information about what the program does, how it works, what input is expected, what output is generated, who wrote it, etc. 
3.	preprocessor directives: tells the computer where to find the library for opera- tions and data types 
4.	pr...
Exam (elaborations)
C++ Programming Chapters 1-4 (TEST 1)
#include <iostream> 
using namespace std; 
int main() 
{ 
return 0; 
} - Answer- the parts required in every C++ program 
 
comments - Answer- nonexecutable statements that are included in a program to provide information about what the program does, how it works, what input is expected, what output is generated, who wrote it, etc. 
 
preprocessor directives - Answer- tells the computer where to find the library for operations and data types 
 
preprocessor - Answer- a program that finds a...
Exam (elaborations)
C++ Quiz Questions And Answers
What number is used by modern digital computers? - Answer- Binary 
 
Using "cin" and "cout" requires which library? - Answer- iostream 
 
What data type would be best for the value 42? - Answer- int 
 
What is the result of: 
pow( 3, 2 ) - Answer- 9 
 
What value would the variable y be equal to? 
 
int y = 3 + 5 / 2; - Answer- 5 
 
Which of the following are logical operators? 
 
a) &&, ||, != 
b) ||, !, == 
c) !, ||, && - Answer- c 
 
If x = 5, y = 6, z = 4, what is the value of x != z && ...
Exam (elaborations)
Programming C++ Final Exam
In a C++ program, two slash marks (//) indicate the beginning of - Answer- a comment 
 
#include <iostream> is an example of a(n) - Answer- preprocessor directive 
 
Which of the following will cause the next outpost to begin on a new line? - Answer- cout <<endl; 
cout <<"n"; 
 
What value will be assigned to the variable number by the following statement? - Answer- 7 
 
What does 'a' escape code represent? - Answer- alert 
 
The value 132.54 can be represented using wh...
Other
C++ Final Exam
Program - Answer- set of instructions a computer follows to perform a task. 
 
source code - Answer- statements written by programmer 
 
object code - Answer- Machine language instructions. 
 
syntax error - Answer- an illegal use of the code 
 
indentifier - Answer- name of a memory location 
 
statement - Answer- a complete instruction that causes the computer to perform some action 
 
comment - Answer- helps explain a program 
 
function - Answer- a group of statements that collectively has a...
Exam (elaborations)
C++ Exam Multiple Choice Questions And Answers
These are operators that add and subtract one from their operands. 
A) plus and minus 
B) ++ and -- 
C) binary and unary 
D) conditional and relational 
E) None of these - Answer- B) ++ and -- 
 
What is the output of the following code segment? 
 
 n = 1; 
 
 while (n <= 5) 
 cout << n << ' '; 
 n++; 
 
A) 1 2 3 4 5 
B) 1 1 1... and on forever 
C) 2 3 4 5 6 
D) 1 2 3 4 
E) 2 3 4 5 - Answer- B) 1 1 1... and on forever 
 
This operator increments the value of its operand, then u...
Exam (elaborations)
Starting Out with C++ Ch1 Test 2023
Starting Out with C++ Ch1 Test 2023...
Exam (elaborations)
C++ Exam 2 2023 with 100% correct answers
This is a collection of statements that performs a specific task. 
A) infinite loop 
B) variable 
C) constant 
D) function 
E) None of these - correct answer Function. 
 
A function ________ contains the statements that make up the function. 
A) definition 
B) prototype 
C) call 
D) expression 
E) parameter list - correct answer Definition. 
 
A function can have zero to many parameters, and it can return this many values. 
A) zero to many 
B) no 
C) only one 
D) a maximum of ten 
E) None of...
Exam (elaborations)
C++ Exam 1 exam 2023 with 100% correct answers
C++ - correct answer computer programming language 
 
GUI - correct answer graphical user interface 
 
CAD/CAM - correct answer computer-aided design & computer aided manufacture 
 
Programming process - correct answer Analysis 
Design 
Programming 
Testing 
 
Types - correct answer int (basic integer), string (text) color () , etc 
 
IOS - correct answer input/output 
 
string literals - correct answer denoted by double quotes " " 
ex. "Hello World" 
 
'n' - cor...
Exam (elaborations)
c++ lab 2023
c++ lab 2023 
 
 
Submit your answers to the following five questions in a word processing 
document that is compatible with Microsoft Word. The name of the file you 
submit should be “XYLab4”, where “X” and “Y” are your first and last 
initials. 
Quest
Other
C++ All Codes
2-1 
********************************** 
 * Programming Assignment 1 * 
* Computer Programming I * 
* Author: ??? * * Due Date: Thursday, Jan. 24 * ********************************** 
In your program, substitute ??? with your own name. If necessary, adjust the positions and the number of the stars to produce a rectangle. - Answer- #include <iostream> 
using namespace std; 
int main() { 
 cout<<"**********************************" << endl; 
 cout <<"* Programming Assi...
Exam (elaborations)
C++ Programming Exam 1
if (x >= 0) 
 x = x + 1; 
 else if (x >= 1) 
 x = x + 2; - Answer- x = 2 
 
if (x >= 0) 
 x = x + 1; 
 if (x >= 1) 
 x = x + 2; - Answer- x = 4 
 
What is the final value of x after performing the following operations? 
 
int x = 21; 
double y = 6; 
double z = 14; 
y = x / z; 
x = 5.5 * y; - Answer- 8 
 
explicit conversion - Answer- the data type transformation caused using a cast operator 
 
int x = (float) 5 + 11.25 
 
=16.25 
 
unary cast operator - Answer- a way to create a t...
Other
C++ Exam 1 Study Guide
C++ - Answer- computer programming language 
 
GUI - Answer- graphical user interface 
 
CAD/CAM - Answer- computer-aided design & computer aided manufacture 
 
Programming process - Answer- Analysis 
Design 
Programming 
Testing 
 
Types - Answer- int (basic integer), string (text) color () , etc 
 
IOS - Answer- input/output 
 
string literals - Answer- denoted by double quotes " " 
ex. "Hello World" 
 
'n' - Answer- special character denoting new line between statements 
 
cout - An...
Other
C++ Exam Study Guide
abstract class - Answer- a class that can only be used as a base class for some other class. A class is abstract if it has at least one pure virtual function. 
 
access control - Answer- a C++ mechanism for prohibiting or granting access to individual members of a class. 
 
access declaration - Answer- a way of controlling access to a specified member of a base class when it is used in a derived class. 
 
access specifier - Answer- a way of labeling members of a class to specify what access is p...
Exam (elaborations)
C++ Unit 1 Exam Q&A
Basic, FORTRAN, C++, C#, and Java are all ____ languages. - Answer- high-level 
 
Main memory consists of an ordered sequence of ____. - Answer- memory cells 
 
A(n) ____ is a unique location in main memory for each cell. - Answer- address 
 
Dividing a problem into smaller subproblems is called _____. - Answer- conquering 
 
A(n) ____ loads an executable program into main memory for execution. - Answer- loader 
 
The ____ and ____ were established to standardize the syntax of C++. - Answer- Ame...
Exam (elaborations)
C++ Exam 2 Q&A
This is a collection of statements that performs a specific task. 
A) infinite loop 
B) variable 
C) constant 
D) function 
E) None of these - Answer- Function. 
 
A function ________ contains the statements that make up the function. 
A) definition 
B) prototype 
C) call 
D) expression 
E) parameter list - Answer- Definition. 
 
A function can have zero to many parameters, and it can return this many values. 
A) zero to many 
B) no 
C) only one 
D) a maximum of ten 
E) None of these - Answer- O...
Exam (elaborations)
C++ Programming Final Exam
A statement that starts with a hashtag (or pound) symbol (#) is called a ... - Answer- preprocessor directive 
 
Every complete C++ program must have a 
a. comment 
b. function named main 
c. cout statement 
d. namespace - Answer- function named main 
 
in a cout statement, what two things will advance the output position to the beginning of the next line? (#1, #2) - Answer- endl, n 
 
Write a C++ statement that correctly assigns the character m to a variable named letter. - Answer- letter='...
Exam (elaborations)
C++ Part 1 Final Exam 2023
C++ Part 1 Final Exam 2023...
Exam (elaborations)
C++ Midterm 1 Review Rated 100% Correct!!
C++ Midterm 1 Review Rated 100% Correct!!