Professional Documents
Culture Documents
Home
T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023
)
Standalone assessment
Assessment #2
Submissions
Here are your latest answers:
Question 1
Blank spaces or unseen control characters in a data file are referred to as ___.
Question 2
cout << is an example of the ____ fundamental instruction.
Response:
output
Question 3
What is a runtime error in C++?
Response:
Question 4
Shape // or /* in C++ indicates the start of a ____.
Response:
comment
Question 5
What is the final value (in C++) of the following expression?
(5 - 16 / 2 * 3 + (3 + 2 / 2) - 5)
Response:
-20
Question 6
_____ data types only have two values: true and false.
Response:
boolean
https://dlsud.edu20.org/student_quiz_assignment/submissions/39260043 1/5
4/11/23, 1:33 AM T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023 ) - ht…
Question 7
What is a logic error in C++?
Response:
Question 8
How is the process of attaching pre-written routines to a program done?
Response:
Question 9
____ is an arithmetic operator that gives the remainder of a division problem.
Response:
Score: 0 out of 1 No
Question 10
The #include< _____> is needed for formatted output.
Response: iomanip
Question 11
Which of the following is a valid way to declare and initialize a double variable named myDouble to 3.14?
Response:
Question 12
What is the purpose of the "cin" statement in C++?
Response:
Question 13
What is the output of the following code snippet?
int num = 7;
cout << num << endl;
Response:
Question 14
Explicit type conversion is also known as type ___.
Response:
casting
https://dlsud.edu20.org/student_quiz_assignment/submissions/39260043 2/5
4/11/23, 1:33 AM T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023 ) - ht…
Score: 1 out of 1 Yes
Question 15
One byte consists of ____ bits.
Response:
Question 16
What is a function in C++?
Response:
Question 17
Which errors are usually the most difficult to correct?
Response:
Logical errors
Question 18
List the preprocessor directive that must be included for cin and cout to be used in a C++ program.
Response: #include<iostream>
Score: 0 out of 1 No
Question 19
What is the output of the following code snippet?
int num1 = 5, num2 = 7;
cout << num1 + num2 << endl;
Response:
An error message
Score: 0 out of 1 No
Question 20
Which function allows us to input characters into a string object?
Response: cin
Score: 0 out of 1 No
Question 21
How would the following expression be written in C++? 2x + 34
Response:
2*x + 34
Question 22
____ is a data type that holds numbers with fractional components.
Response:
float
https://dlsud.edu20.org/student_quiz_assignment/submissions/39260043 3/5
4/11/23, 1:33 AM T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023 ) - ht…
Score: 0 out of 1 No
Question 23
List the preprocessor directive that must be included for cin and cout to be used in a C++ program.
Response:
#include
Score: 0 out of 1 No
Question 24
What is the difference between a syntax error and a logic error?
Response:
Syntax errors involve incorrect use of C++ keywords, while logic errors involve incorrect program logic.
Question 25
What is an example of a runtime error?
Response:
Score: 0 out of 1 No
Question 26
The << in a cout statement is called the ___ operator.
Response: insertion
Question 27
What is machine code?
Response:
Question 28
____ is a data type that only holds numbers with no fractional component.
Response:
int
Question 29
Which of the following statements is true about compilers?
Response:
Question 30
A ____ is a memory location whose value cannot change during the execution of the program.
Response:
constant
https://dlsud.edu20.org/student_quiz_assignment/submissions/39260043 4/5
4/11/23, 1:33 AM T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023 ) - ht…
Score: 1 out of 1 Yes
https://dlsud.edu20.org/student_quiz_assignment/submissions/39260043 5/5