CS 312 - Review Questions


How do you fill in the blanks?

import ___<#0>_______

public class Review {
    public static void main(String[] args) {
        Scanner reader = __<#1>__ Scanner(System.in);
        int x = _<#2>_ .___<#3>___ ;

        System.out.println("Value = " + x);
    }
}

Question 0:                                  Question 2:
A. java.util                                    A. Scan
B. java.util.*                                  B. Scanner
C. java.util.*;                                C. scan
D. java.util;                                   D. reader

Question 1:                                  Question 3:
A. scan                                         A. next
B. public                                       B. nextLine
C. new                                          C. nextInt()
D. int                                            D. next()
E. input