Chapter 1 Quiz: Attempt History
Chapter 1 Quiz: Attempt History
Chapter 1 Quiz: Attempt History
Chapter 1 Quiz
Due No due date Points 10 Questions 10 Time Limit 25 Minutes
Allowed Attempts 3
Instructions
This quiz will help you get prepared for chapter 1 assessment. You will have 25 minutes to answer 10
questions and you will be able to see the correct answers after your last attempt. You are free to take
the quiz up to 3 times.
Good luck!
Attempt History
Attempt Time Score
LATEST Attempt 1 25 minutes 6 out of 10
Question 1 1 / 1 pts
12_Angry_Men
1 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
Question 2 1 / 1 pts
Question 3 1 / 1 pts
007
2 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
Question 4 1 / 1 pts
What is the value of the var variable after the execution of the
following snippet of code:
int var;
var = 10; /*
var = var + 10;
*/ var = var + var;
// var = var + var;
20
Incorrect
Question 5 0 / 1 pts
What is the value of the var variable after the execution of the
following snippet of code:
float var;
var = .1;
3 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
111.1
Question 6 1 / 1 pts
int i,j,k;
i = 10;
j = 3;
k = (i % j * i / 3) / (j % i - j / i);
4 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
Question 7 1 / 1 pts
Since the ASCII code of 'X' is equal to 88, then the ASCII code of
'Z' is equal to:
90
Incorrect
Question 8 0 / 1 pts
#include <iostream>
using namespace std;
int main(void) {
int i,j;
cin >> i;
j = i;
if (i >= 9)
i += 9 - i;
j /= i;
cout << j;
return 0;
5 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
Incorrect
Question 9 0 / 1 pts
What is displayed on the screen if the user enters the value of 3.0
as the input?
#include <iostream>
using namespace std;
int main(void) {
float a,b;
cin >> a;
b = a / 2;
if (b >= 1)
a += b;
if (a > b)
b += a;
cout << a + b;
return 0;
}
6 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
Incorrect
Question 10 0 / 1 pts
What is displayed on the screen if the user enters the value of 2.0
as the input?
#include <iostream>
#include <cmath>
using namespace std;
int main(void) {
float a;
cin >> a;
a *= a;
a *= a;
a = sqrtf(a) * sqrtf(a);
cout << a;
return 0;
}
7 of 8 29/10/2020, 10:36 am
Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...
8 of 8 29/10/2020, 10:36 am