You are on page 1of 8

Chapter 1 Quiz: ITE-6101-2013T(UGRD) Computing Fu... https://1384142.netacad.com/courses/1088768/quizzes/...

Chapter 1 Quiz
Due No due date Points 10 Questions 10 Time Limit 25 Minutes
Allowed Attempts 3

Instructions

Welcome to chapter 1 quiz

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!

Take the Quiz Again

Attempt History
Attempt Time Score
LATEST Attempt 1 25 minutes 6 out of 10

 Answers will be shown after your last attempt

Submitted Oct 29 at 9:52am

Question 1 1 / 1 pts

The following string:

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

must not be used as a variable name

Question 2 1 / 1 pts

A C++ language program may contain:

exactly one function named main

Question 3 1 / 1 pts

A number written like this:

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

is an integer coded as an octal number

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

var = var + 1.;


var = var + 1e1;
var = var + 1e-2;

111.1

Question 6 1 / 1 pts

What is the value of the k variable after the execution of the


following snippet of code:

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

What is displayed on the screen if the user enters the value of 10


as the input?

#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/...

This cannot be predicted.

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;
}

This cannot be predicted.

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

You might also like