• Card 28 / 76: Consider the following declarations. Which declaration has an element name that does not conform to standard naming conventions?
    A) static final int varName; // variable
    B) Integer IntName; // variable
    C) void getName () {…} // method
    D) public class Name {…} // class

    Answer:
    B) Integer IntName; // variable

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Explanation:

B. B is correct because the proper naming convention is not used.

All variables should start with a lowercase letter—thus, IntName should read intName.

A, C, and D are incorrect because they make use of the proper naming conventions.

Variable and method names should appear in all lowercase characters, using camel case where

appropriate. Class, interface, and enumeration names should start with an uppercase character, followed by lowercase characters and camel case where appropriate. Note that “camel case” refers to the capitalization of the first letter of appropriate words within an identifier.

Hide Choices Interactive Question Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Vanessa Soledad
Start Exam
Anindyo Mukhopadhyay
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>