Quiz #1
Friday
With a piece of paper, write down your name and answers to for following questions.
These characters mark the beginning of a single-line comment.
//
/*
*/
/**
This type of expression has a value of either
true
orfalse
.- binary expression
- decision expression
- unconditional expression
- boolean expression
What will the
println
statement in the following program segment display?int x = 5 System.out.println(++x);
- 5
- 6
- 0
- None of these
Find the error in the following method.
public static double timesTwo(double num) { double result = num * 2; }
Correction:
public static double timesTwo(double num) { double result = num * 2; return result; }
Student Performance and Statistics
A histogram of student performance on percentage grades for Quiz 1 on Friday.
A table showing the average performance for each question in Quiz 1 on Friday.