Quiz 2 - PowerPoint PPT Presentation

1 / 2
About This Presentation
Title:

Quiz 2

Description:

... each of the following as either a keyword, an identifier, or a literal: class Class 'class' '1.32' 1.32 132. List at least five of Java's eight primitive types ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 3
Provided by: cormacf
Category:
Tags: javas | quiz

less

Transcript and Presenter's Notes

Title: Quiz 2


1
Quiz 2 40 minutes(then break, class restarts
at 850am)
  • What is your name and username.
  • Identify each of the following as either a
    keyword, an identifier, or a literal
  • class Class class 1.32 1.32 132
  • List at least five of Javas eight primitive
    types
  • Write a flow chart for a for loop.

2
  • What does the following code print?
  • for(int i1 ilt10 i)
  • if (igt5)
  • System.out.print(i)
  • Express the program from question 5 using a while
    loop instead of a for loop
  • Write a program that reads in a list of numbers,
    terminated by 0, and computes the average of
    those numbers
Write a Comment
User Comments (0)
About PowerShow.com