Quick Multiple Choice Problems

This is a discussion on Quick Multiple Choice Problems within the C Programming forums, part of the General Programming Boards category; Hello, I am taking an introduction to C course at college, and we were recently assigned homework problems that consisted ...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    7

    Quick Multiple Choice Problems

    Hello,

    I am taking an introduction to C course at college, and we were recently assigned homework problems that consisted of around 10 multiple choice problems. Since I can't post them below, I attached the problems to a PDF file. Below I will post my solutions. It would be greatly appreciated if you could help me out. Also, please do explain the answers because I am looking to actually understand the concepts

    1) Not sure.

    2) I have A because it is performing the formula 5-i, and the for statement is starting with i = 0 and ending with i=5.

    3) I have C, since it is calling numbers from 0 to 10, then adding 1.

    4) Not sure.

    5) I have C. After 1 and 2, it will be forced to generate 3 zeros because x[5] is stating that the array has 5 integers.

    6) Not sure.

    7) I have A.

    8) Not sure.

    9) I have C because the statement is calling numbers from 0 to 5, and then adding 1.

    10) I have D. a[0] = 1, a[1] = 2, and a[2] = 3.

    Thanks again and have a good day!

    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    Mar 2013
    Posts
    7
    After looking at it one more time, I think #3 is B, not C. Also, for #6 I got C, but please correct me if I am wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Randomized multiple choice
    By Chucker in forum C Programming
    Replies: 5
    Last Post: 02-20-2012, 06:27 PM
  2. Multiple choice conditional
    By SpudCake in forum C++ Programming
    Replies: 22
    Last Post: 10-20-2011, 12:02 PM
  3. multiple choice
    By iLike in forum C Programming
    Replies: 6
    Last Post: 10-30-2009, 03:53 PM
  4. Multiple Choice!!!
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 09-08-2002, 02:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21