Test1_07F - Computer Science 1046 Introduction to Computer...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Page #1 of 2 Computer Science 1046 “Introduction to Computer Science I” Test #1 --- Monday, October 1, 2007 There are four questions on this test, worth 75 marks in total. Please sign your name on this question sheet and verify that you have both (2) numbered pages. The time allotted is 75 minutes . Write your answers to all questions in the test booklet(s) provided. Use the left-hand pages for rough work only. Unless you specifically indicate it, I will not mark left-hand pages . Sign Your Name Here: ___________________________________________________ Question One [10 marks] Write the shortest Java program that will compile and execute without errors, the one we discussed in the lectures. Question Two [30 marks] Write a Java program which prompts the user to enter the name of their favourite food at the keyboard. It should not matter if the user chooses upper or lowercase letters or a mix of both during the input. The program should then: display the name all in lower case letters.
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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