Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

I have some quiz questions. There are 10 multiple choice and

 
LogicPro's Avatar
  • Answered by:LogicPro
  • Computer Software Engineer
  • Positive Feedback: 99.4 %
  • Accepted Answers: 5550
Verified Expert
in Programming

Recent Feedback

Positive
fast response.
Positive
fast response
Positive
great
Positive
Thank you
Positive
Thank you
Positive
He responded quickly to my question with a solid answer.
Positive
Perfect as usual
Positive
thank you
Positive
thank you
Positive
Outstanding help!

Customer Question

I have some quiz questions. There are 10 multiple choice and 1 short essay. They can be found here:

http://wikisend.com/download/561582/Wk5Quiz.docx


Here's the copy/paste

1. (TCO 11) Which of the following is false? (Points : 3)
All elements of the array have the same data type.
All elements in an array have the same name.
All elements in an array have the same subscript.
The first element of the array has a subscript of zero.


2. (TCO 11) Programmers often mistakenly reference the first element in an array with index1. What is this called? (Points : 3)
Logic-error
Index1-error
off-by-one-error
N-1


3. (TCO 11) A five-row, six-column array has a total of how many elements? (Points : 3)
1
36
30
11


4. (TCO 12) Given the following array:

int profit [5] = {10, 20, 31, 55, 66};

The following statement would replace which value?
profit [0] = profit[2]; (Points : 3)
10 with 31
10 with 20
20 with 31
10 with 55


5. (TCO 12) What is the character automatically included at the end of an array of characters? (Points : 3)
\n
\0
\z
\*


6. (TCO 11) In the following array, what is the value of table[0][0]?
int table[4][3]={0,7,3,2,4,9,8,1,3,6,5,4};
(Points : 3)
3
2
1
0


7. (TCO 11) What type of error will this code produce?

int n[30], i;
for(i = 0; i <= 30; ++i)
n = i; (Points : 3)
No compiler errors will be reported.
A compiler error is generated since there are no braces {} with the for loop.
A runtime error may occur because we are out of bounds on the array.
No compiler errors will be reported, but a runtime error may occur because we are out of bounds on the array.


8. (TCO 11) Is it possible to write code in this manner for a C++ program?

#define size 20
int main()
{
int numbers[size];
} (Points : 3)
Yes, this is perfectly acceptable C++ code.
No, the array dimension cannot be a variable.
Yes, you could write it this way, but you would be wrong.
None of the above


9. (TCO 11) Given this function prototype void CalcTotal(float numbers[]), what is wrong with this function?

void CalcTotal(float numbers) {
float total;
for(int I = 0; I < 6 ++I)
{
total = total + numbers;
}
} (Points : 3)
The function is correct.
There is a data type in the function header line.
I is capitalized.
The function header line doesn't match the prototype.


10. (TCO 12) Which is not a reason pointers are valuable? (Points : 3)
Pointers allow for faster access to array elements.
Pointers speed the process of passing objects like classes to functions.
Pointers allow function to be passed as an argument to other functions.
Pointers involve a great deal of overhead when used in conjunction with arguments.


11. (TCO 11) Explain how to determine the number of elements in a previously defined single-dimension array. Provide a C++ program segment that illustrates your answer. (Points : 5)

 

Optional Information:
Computer OS: Windows 7
Browser: Firefox
Programming Language: C++

Submitted: 600 days and 10 hours ago.
Category: Programming
Value: $23
Status: CLOSED
Picture
Expert:  LogicPro replied600 days and 10 hours ago.

Working on it. Please wait

Customer replied600 days and 10 hours ago.

Thanks, XXXXX XXXXX due for a few days so no hurry.

Picture
Expert:  LogicPro replied600 days and 10 hours ago.

Thank you :)

Accepted Answer

Picture
Expert:  LogicPro replied600 days and 8 hours ago.

Download answer from here. Wk5quiz.docx

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 99.4 %
Accepts: 5550
Answered: 9/26/2011

Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Ask this Expert a Question >
 
Tweet

2 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
Microsoft Visual Basic 2010 Programming Exercise 5/16/2013
I am programming and auto reply macro and Outlook 10 that is 5/16/2013
Hello. I really need help with C Programming. I need a program 5/15/2013
I need to make the submit button bigger 5/15/2013
"For Jatechexpert" Part 1Programming Exercise 2—Calories 5/14/2013
INSTRUCTIONS: VERY IMPORTANT, THIS IS TO BE DONE USING MICROSOFT 5/13/2013
I have a JavaScript programming question. I have a form and 5/13/2013
Need a java programming to fulfill the following requirements: 1. 5/13/2013
I. Overview: Welcome to the CIT216 Practice Final 5/13/2013
Please help with this project https://www.dropbox.com/s/vs 5/12/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

JustAnswer in the News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
85 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us | Our Network
© 2003-2013 JustAnswer LLC
  • Pearl.com
  • JustAnswer UK
  • JustAnswer Germany
  • JustAnswer Spanish
  • JustAnswer Japan