lOMoAR cPSD| 52021443
Downloaded by Master Vincent ()
, lOMoAR cPSD| 52021443
Started on Sunday, 28 April 2024, 8:36 PM
State Finished
Completed on Monday, 29 April 2024, 2:50 PM
Time taken 18 hours 13 mins
Marks 46.00/56.00
Grade 82.14 out of 100.00
Question 1
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is a valid variable name?
a.
3 com
b.
three_com
c.
3 _com Question text
Which of the following statements is NOT legal?
d.
a.
ampersand&
char ch = 'b';
Feedback
b.
Your answer is correct.
char ch = '0';
The correct answer is:
c.
three_com
char ch = 65;
d.
char ch = "cc";
Feedback
Your answer is correct.
The correct answer is:
char ch = "cc";
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question 3
Correct
Mark 1.00 out of 1.00
Downloaded by Master Vincent
()
, lOMoAR cPSD| 52021443
Flag question
Question text
What is the value of x after the following statements?
float x;
x = 15/4;
a.
3.75
b.
4.0
c.
3.0
d.
60
Feedback
Your answer is correct.
The correct answer is:
3.0
Question text
What is the value of x after the following statements?
int x;
x = 15/4;
a.
15
b.
3
c.
4
d.
3.75
Feedback
Your answer is correct.
The correct answer is:
3
Question 4
Correct
Question text
What is the value of x after the following statements?
int x;
x = 15 % 4;
Downloaded by Master Vincent
()
, lOMoAR cPSD| 52021443
Mark 1.00 out of 1.00
Flag question
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
a.
Feedback
Your answer is correct.
The correct answer is:
3
15
b.
4
Question text
What is the value of x after the following statement?
float x;
x = 3..0 + 3 + ;
a.
5.75
b.
5 ,75
c.
1.75
d.
3.75 Question text
Which C++ statements correctly declare a variable called age, and prompt a user for his/her age.
Feedback
a.
Your answer is correct.
int age = 0;
The
coutcorrect answer
>> "Please is:your age: ;
enter
3.75
cin << age;
b.
int age = 0;
cout << "Please enter your age: ";
cin >> ages;
Downloaded by Master Vincent ()
Downloaded by Master Vincent ()
, lOMoAR cPSD| 52021443
Started on Sunday, 28 April 2024, 8:36 PM
State Finished
Completed on Monday, 29 April 2024, 2:50 PM
Time taken 18 hours 13 mins
Marks 46.00/56.00
Grade 82.14 out of 100.00
Question 1
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is a valid variable name?
a.
3 com
b.
three_com
c.
3 _com Question text
Which of the following statements is NOT legal?
d.
a.
ampersand&
char ch = 'b';
Feedback
b.
Your answer is correct.
char ch = '0';
The correct answer is:
c.
three_com
char ch = 65;
d.
char ch = "cc";
Feedback
Your answer is correct.
The correct answer is:
char ch = "cc";
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question 3
Correct
Mark 1.00 out of 1.00
Downloaded by Master Vincent
()
, lOMoAR cPSD| 52021443
Flag question
Question text
What is the value of x after the following statements?
float x;
x = 15/4;
a.
3.75
b.
4.0
c.
3.0
d.
60
Feedback
Your answer is correct.
The correct answer is:
3.0
Question text
What is the value of x after the following statements?
int x;
x = 15/4;
a.
15
b.
3
c.
4
d.
3.75
Feedback
Your answer is correct.
The correct answer is:
3
Question 4
Correct
Question text
What is the value of x after the following statements?
int x;
x = 15 % 4;
Downloaded by Master Vincent
()
, lOMoAR cPSD| 52021443
Mark 1.00 out of 1.00
Flag question
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
a.
Feedback
Your answer is correct.
The correct answer is:
3
15
b.
4
Question text
What is the value of x after the following statement?
float x;
x = 3..0 + 3 + ;
a.
5.75
b.
5 ,75
c.
1.75
d.
3.75 Question text
Which C++ statements correctly declare a variable called age, and prompt a user for his/her age.
Feedback
a.
Your answer is correct.
int age = 0;
The
coutcorrect answer
>> "Please is:your age: ;
enter
3.75
cin << age;
b.
int age = 0;
cout << "Please enter your age: ";
cin >> ages;
Downloaded by Master Vincent ()