COSC-1436 Programming
Fundamentals Unit 1 Exam Questions
& Answers5
What is the value of number after the following statements execute?
int number = 10;
number += 5;
number -= 2;
number *= 3; - ANSWERS-39
In any program that uses the cin object, you must include the _____________. - ANSWERS->>
and << operators
Which line in the following program will cause a compiler error?
1 # include <iostream>
2 using namespace std;
3
4 int main()
5{
6 const int MY_VAL;
7 MY_VAL = 77;
8 cout << MY_VAL << endl;
9 return 0;
10 } - ANSWERS-6
, Which line in the following program will cause a compiler error?
1 # include <iostream>
2 using namespace std;
3
4 int main()
5{
6 const int MY_VAL = 77;
7 MY_VAL = 99;
8 cout << MY_VAL << endl;
9 return 0;
10 } - ANSWERS-7
An Integrated Development Environment typically consists of: - ANSWERS-A text editor, A
compiler, and A debugger.
The purpose of a memory address is: - ANSWERS-To identify the location of a byte.
___________ are used to translate each source code instruction into the appropriate machine
language instruction. - ANSWERS-Compilers
Characters or symbols that perform operations on one or more operands are: - ANSWERS-
Operators
This is used in a program to mark the beginning or ending of a statement, or separate items in a
list. - ANSWERS-Punctuation
Fundamentals Unit 1 Exam Questions
& Answers5
What is the value of number after the following statements execute?
int number = 10;
number += 5;
number -= 2;
number *= 3; - ANSWERS-39
In any program that uses the cin object, you must include the _____________. - ANSWERS->>
and << operators
Which line in the following program will cause a compiler error?
1 # include <iostream>
2 using namespace std;
3
4 int main()
5{
6 const int MY_VAL;
7 MY_VAL = 77;
8 cout << MY_VAL << endl;
9 return 0;
10 } - ANSWERS-6
, Which line in the following program will cause a compiler error?
1 # include <iostream>
2 using namespace std;
3
4 int main()
5{
6 const int MY_VAL = 77;
7 MY_VAL = 99;
8 cout << MY_VAL << endl;
9 return 0;
10 } - ANSWERS-7
An Integrated Development Environment typically consists of: - ANSWERS-A text editor, A
compiler, and A debugger.
The purpose of a memory address is: - ANSWERS-To identify the location of a byte.
___________ are used to translate each source code instruction into the appropriate machine
language instruction. - ANSWERS-Compilers
Characters or symbols that perform operations on one or more operands are: - ANSWERS-
Operators
This is used in a program to mark the beginning or ending of a statement, or separate items in a
list. - ANSWERS-Punctuation