Spring Summer 2015 Midterm Solution - CSC 2000 - CSC 2000 Introduction to C Programming Language Spring Summer Term 2015 Midterm(250 points Last name

Spring Summer 2015 Midterm Solution - CSC 2000 - CSC 2000...

This preview shows page 1 - 4 out of 12 pages.

CSC 2000 Introduction to C++ Programming Language Spring Summer Term 2015 Midterm (250 points) Last name: ________________________________ First name: ________________________________ ID: ______________________________________ Directions: a. Please fill in the requested information at the top of this exam. b. This exam is Closed Book/Closed Notes and contains 50 multiple choice questions (200 points) and 2 programming questions (50 points), total of 250 points. c. You are allowed to use 3 cheat sheets (81/2 x 14), typed or handwritten. d. You have 95 minutes to complete the exam. e. No electronic devices may be used during the examination, i.e. no cell phones, mp3 players, laptops, etc. f. You should choose the single best alternative for each multiple choice question, even if you believethat a question is ambiguous or contains a typographic error. Provide only one answer. g. When completing the exam, please leave the room and be courteous to those still taking the exam. 1
Image of page 1

Subscribe to view the full document.

Multiple Choice 1.Which of the following is not part of the Software Life Cycle? 2.From which language did C++ directly evolve? 3.The output of the compiler is called 4.A finite sequence of precise instructions that leads to a problem solution is a.A programb.The CPUc.A List of Inputs and Outputsd.An AlgorithmAnswer: D 5.One of the biggest difference between C and C++ is: 6.A byte consists of how many bits? 7.What is wrong with the following statement? 2
Image of page 2
cout << “Hello to everyone\n; 8.C++ is an example of a a.Machine languageb.High-level languagec.Low-level languaged.Assembly languageAnswer: B 9.Which of the following is not a valid identifier? 10.What is the output of the following code?cout << "This is a \\" << endl;
Image of page 3

Subscribe to view the full document.

Image of page 4

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes