Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
My DCCCD
Test
Courses
Community
My Career
Crystal Smith
Test
Test2
Course
Started
4/16/16 6:59 PM
Submitted
4/16/16 7:26 PM
Due Date
4/17/16 11:59 PM
Status
Completed
Attempt
Score
Question 1
2 out of 2 points
With a decision structure or ____ structure you ask a question, and, depending on the
answer, you take one of two courses of action.
Question 2
2 out of 2 points
Question 3
2 out of 2 points
if-else examples can also be called ____, because they contain the action taken
when the tested condition is true and the action taken when it is false.
Question 4
2 out of 2 points
A ____ can contain any number of tasks, but there is no chance to branch off and skip
any of the tasks.
Question 5
All logic problems can be solved using only the three structures____.
Question 6
2 out of 2 points
2 out of 2 points
Question 7
2 out of 2 points
The popular name for logically snarled program statements is ____ code.
Question 8
2 out of 2 points
Question 9
0 out of 2 points
You can use an ____ statement to clearly show where the actions that depend on a
decision end.
Question 10
2 out of 2 points
Question 11
0 out of 2 points
Most newer computer languages are unstructured and use syntax that lets you deal
efficiently with sequence, selection, and looping.
Question 12
0 out of 2 points
Question 13
2 out of 2 points
Question 14
2 out of 2 points
Question 15
2 out of 2 points
Question 16
2 out of 2 points
Question 17
0 out of 2 points
Question 18
2 out of 2 points
Question 19
2 out of 2 points
Question 20
2 out of 2 points
Question 21
2 out of 2 points
Question 22
2 out of 2 points
Question 23
2 out of 2 points
Question 24
0 out of 2 points
The result of a logical expression cannot be assigned to an int variable, but it can be
assigned to a bool variable.
Question 25
2 out of 2 points
Question 26
0 out of 2 points
Question 27
0 out of 2 points
Which of the following statements generates a random number between 0 and 50?
Question 28
2 out of 2 points
What is the initial statement in the following for loop? (Assume that all variables are
properly declared.)
inti;
for(i=1;i<20;i++)
cout<<"HelloWorld";
cout<<"!"<<endl;
Question 29
2 out of 2 points
Question 30
2 out of 2 points
Question 31
2 out of 2 points
Question 32
2 out of 2 points
Supposesum, num, and j are intvariables, and the input is 47129-1. What
is the output of the following code?
cin>>sum;
cin>>num;
for(j=1;j<=3;j++)
{
cin>>num;
sum=sum+num;
}
cout<<sum<<endl;
Question 33
0 out of 2 points
Question 34
2 out of 2 points
Question 35
2 out of 2 points
Question 36
2 out of 2 points
Question 37
2 out of 2 points
Question 38
2 out of 2 points
Question 39
2 out of 2 points
Question 40
2 out of 2 points
Question 41
2 out of 2 points
Question 42
2 out of 2 points
Question 43
2 out of 2 points
To use the predefined function tolower, the program must include the header file
____.
Question 44
2 out of 2 points
Question 45
2 out of 2 points
Question 46
0 out of 2 points
Question 47
2 out of 2 points
Question 48
2 out of 2 points
In C++, a function prototype is the function heading without the body of the function.
Question 49
2 out of 2 points
return10,16;
Question 50
2 out of 2 points
OK