programming languages Online Quiz - 319
programming languages Online Quiz - 319
Questions
Given: 11. public class Key { 12. private long id1; 13. private long 1d2; 14. 15. // class Key methods 16. } A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key? (Choose two.)
- public int hashCode()
- public boolean equals(Key k)
- public int compareTo(Object o)
- public boolean equals(Object o)
- public boolean compareTo(Key k)
AppDomains are usually created by hosts
- True
- False
Which tool is used to generate PE files from MSIl code?
- ildasm
- ilasm
- capol
- resgen
Placing web service files in one of these folders, generates a proxy class(out of .wsdl) and a typed dataset (out of .xsd). What is the name of the folder?
- App_Data
- App_Resources
- App_Code
- App_WebReferences
Which of the page directive defines the class or virtual path used to type the Master property of a page?
- @MasterType
- @MasterPage
- @Master
- @MasterPath
What is called as a collection of CSS files and images?
- Skin
- Themes
- CSS_folder
- None
POST is an IDEMPOTENT method.
- True
- False
service() method - it's advisable to override it in our applications.
- True
- False
In MVC architecture, VIew means the JSP.
- True
- False
SERVLETCONFIG--- one per web Application.
- True
- False
init() & destroy() ---methods can ONLY BE CALLED ONCE!
- True
- False
What noted Java developer at his Ph.D. defense answered a planted question with a rap song backed by a recorded rhythm track on a hidden tape recorder?
- James Gosling
- Guy Steele
- Joshua Bloch
- Greg Papadopoulos
True or false: It is preferable to write: List dogs = new ArrayList(); instead of List dogs = new ArrayList(); because raw types enable developers to avoid needless verbiage.
- True
- False
Who agrees with the idea that developers should write "dumb code," meaning straightforward, clean code that follows the most obvious object-oriented principles, in order to get the best compiler optimization -- and that clever, hacked-up, bit-banging code will get poorer results?
- Brian Goetz
- Heinz Kabutz
- Cay Horstmann
- All of the above
- None of the above
Joshua Bloch says that the strangest thing about the Java platform is _____
- Poor Unicode support.
- java.lang.Cloneable does not contain clone() method.
- The byte type is signed.
- The creators of the Java programming language modeled the syntax after C and C++.
- java.io.InputStream is an abstract class and not an interface.
Who strongly believes in the importance of unit testing and says that developers should engage in it?
- Heinz Kabutz
- Cay Horstmann
- Joshua Bloch
- 1 and 3
- All of the above
Qusay Mahmoud remarked that "Today's generation of students is becoming known as Generation C." What does "C" stand for?
- Create, complete, and collect
- Creativity, curiosity, and career
- Content, cash, choice, and control
- Compete, confer, and collect
For which action can you use the TO_DATE function?
- Convert any date literal to a date
- Convert any numeric literal to a date
- Convert any character literal to a date
- Convert any date to a character literal
- Format ’10-JAN-99’ to ‘January 10 1999’
Computer science professors Qusay Mahmoud and Cay Horstmann agree that the biggest mistake made by teachers of computer science is
- Overwhelming students with too much code complexity too early
- Lecturing too much
- Failing to educate students in the use of tools
- Failing to encourage individual creativity and initiative
Which one is a system privilege?
- SELECT
- EXECUTE
- ALTER TABLE
- CREATE TABLE
- DELETE