SSL Certificate
  • The syntax of a cast operation requires entering the new data type in



1. (TCO 1) The syntax of a cast operation requires entering the new data type in _____ before a literal or variable. (Points : 3)
       brackets
       double quotes
       parentheses
       single quotes



2. (TCO 1) Which of the following is not a reference type in Java? (Points : 3)
       Array
       Date
       Float
       String



3. (TCO 1) The _____ class serves as an intermediary between the input buffer and the Java program. (Points : 3)
       BufferedInputStream
       BufferedReader
       InputStreamReader
       System.in



4. (TCO 1) Which one of the following statements is not a valid declaration statement? (Points : 3)
       dataType identifier, identifier;
       dataType identifier; identifier;
       datatype identifier;
       datatype identifier = initialValue;



5. (TCO 1) A _____ is an object that displays text in the applet window. (Points : 3)
       button
       CheckBox
       label
       TextField



6. (TCO 3) The Java _____ runs a Java program. (Points : 3)
       compiler
       interpreter
       program
       translator



7. (TCO 3) Which of the Boolean expressions below is incorrect? (Points : 3)
       (true) && (3 > 4)
       !(x > 0) && (x > 0)
       (x > 0) || (x < 0)
       (x != 0) || (x = 0)



8. (TCO 3) This type of selection statement evaluates an integer expression or value and then conditionally perform statements. (Points : 3)
       If statement
       Switch statement
       While statement
       For statement



9. (TCO 3) The printf() method may be used to format numeric output. The conversion character for formatting decimal integer values is (Points : 3)
       %i.
       %d.
       %f.
       %s.



10. (TCO 3) Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative? (Points : 3)
       1 < x < 100 && x < 0
       ((x < 100) && (x > 1)) || (x < 0)
       ((x < 100) && (x > 1)) && (x < 0)
       (1 > x >  100) || (x < 0)



1. (TCO 2) The two image formats supported by most Web browsers are ____. (Points: 2)
      


 GIF and BMP
        GIF and JPEG
        PNG and JPEG
        JPEG and BMP



2. (TCO 3) JPEG images can use ____ colors. (Points: 2)
        216
        256
        16.7 million
        26.7 million



3. (TCO 3) A(n) ____ map lists the position of all hotspots within a particular image. (Points: 2)
        target
        practice
        image
        hot



4. (TCO 2) Which of the following is a basic color name in HTML? (Points: 2)
        navy
        tan
        snow
        firebrick



5. (TCO 2) White has an RGB triplet of ____. (Points: 2)
        (0, 0, 0)
        (255, 255, 255)
        (0, 255, 0)
       (255, 0, 255)



6. (TCO 2) ____ fonts are best read in large blocks of text like paragraphs. (Points: 2)
        Serif
        Sans-serif
       Monospace
        Cursive



7. (TCO 2) Which of the following is one of the basic color names in HTML? (Points: 2)
        gold
        salmon
        lime
        All of the above



8. (TCO 2) Which of the following is NOT a basic color name in HTML? (Points: 2)
        silver
        teal
        fuchsia
        None of the above



9. (TCO 2) The RGB system permits ____ distinct colors. (Points: 2)
        16
        216
        255
        16.7 million



10. (TCO 2) ____ fonts can work well either as paragraph text or as headings and subheads. (Points: 2)
        Serif
       Monospace
        Sans-serif
        Cursive


Write a review

Please login or register to review

The syntax of a cast operation requires entering the new data type in

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Tags: Multiple choice question, MCQ, java, Applet