You are on page 1of 5

4/11/23, 1:33 AM T-CPET001LA CEE11 COMPUTER FUNDAMENTALS AND PROGRAMMING FOR ENGINEERS LAB 2nd Sem ( 2022-2023 ) - ht…

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 ___.

Response: white space

Score: 1 out of 1 Yes

Question 2
cout << is an example of the ____ fundamental instruction.

Response:

output

Score: 1 out of 1 Yes

Question 3
What is a runtime error in C++?

Response:

An error caused by a problem that occurs while a program is running

Score: 1 out of 1 Yes

Question 4
Shape // or /* in C++ indicates the start of a ____.

Response:

comment

Score: 1 out of 1 Yes

Question 5
What is the final value (in C++) of the following expression?
(5 - 16 / 2 * 3 + (3 + 2 / 2) - 5)

Response:

-20

Score: 1 out of 1 Yes

Question 6
_____ data types only have two values: true and false.

Response:

boolean

Score: 1 out of 1 Yes

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:

An error caused by a logic error in code

Score: 1 out of 1 Yes

Question 8
How is the process of attaching pre-written routines to a program done?

Response:

By the linker process

Score: 1 out of 1 Yes

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

Score: 1 out of 1 Yes

Question 11
Which of the following is a valid way to declare and initialize a double variable named myDouble to 3.14?

Response:

double myDouble = 3.14;

Score: 1 out of 1 Yes

Question 12
What is the purpose of the "cin" statement in C++?

Response:

To input data from the user

Score: 1 out of 1 Yes

Question 13
What is the output of the following code snippet?
int num = 7;
cout << num << endl;

Response:

Score: 1 out of 1 Yes

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:

Score: 1 out of 1 Yes

Question 16
What is a function in C++?

Response:

A block of code that performs a specific task

Score: 1 out of 1 Yes

Question 17
Which errors are usually the most difficult to correct?

Response:

Logical errors

Score: 1 out of 1 Yes

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

Score: 1 out of 1 Yes

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.

Score: 1 out of 1 Yes

Question 25
What is an example of a runtime error?

Response:

Dividing by imaginary number

Score: 0 out of 1 No

Question 26
The << in a cout statement is called the ___ operator.

Response: insertion

Score: 1 out of 1 Yes

Question 27
What is machine code?

Response:

Code consisting of ones and zeroes

Score: 1 out of 1 Yes

Question 28
____ is a data type that only holds numbers with no fractional component.

Response:

int

Score: 1 out of 1 Yes

Question 29
Which of the following statements is true about compilers?

Response:

Compilers detect syntax errors

Score: 1 out of 1 Yes

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

You might also like