QUIZ3Solutions - Page 1 of 3 CSE 110: Principles of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Page 1 of 3 CSE 110: Principles of Programming with Java School of Computing, Informatics, and Decision Systems Eng. Arizona State University Spring 2010, Quiz 3 10 Points Point, 15 Minutes Student Name: Solutions Major:………………. .(CS/CSE/Other) ---------------------------------------------------------------------------------------------------------------- Part I : Each question worth 0.5 point 1) The ________________ operator is used to instantiate an object. a) static b) new c) + d) - e) none of the above 2) Which of the following is an invalid way to instantiate a String object? a) String title = new String(“Java Software Solutions”); b) String name = “John Lewis”; c) String name = ‘8’; e) all of the above are valid 3) Consider the following snippet of code: Random generator = new Random(); int randNum = generator.nextInt(20) + 1; Which of the following will be true after these lines are executed? a)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/10/2010 for the course MATHEMATIC 242 taught by Professor Heckman during the Spring '10 term at Arizona.

Page1 / 3

QUIZ3Solutions - Page 1 of 3 CSE 110: Principles of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online