Test1_07F - Computer Science 1046 Introduction to Computer...

Info iconThis 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. display the first character of the name in upper case.
Background image of page 1

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

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

Page1 / 2

Test1_07F - Computer Science 1046 Introduction to Computer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online