Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is a legal identifier? ( ) A . main ( ) B . _ class C . void D . static

Which of the following is a legal identifier? ()
A. main()
B._class
C. void
D. static
Which of the following is the best identifier for a method to get a student's name? ()
A. GetStuN()
B. GetNameOfStudent ()
C. getStuName()
D. getStudentName()
Which of the following is the best identifier for a class? ()
A. Cat
B. Home_Cat
C. Small_cat
D. redHat
Which of the following is the best identifier for an attribute/field?()
A. age
B. studentName
C. AnimalName
D. sNum
Which of the following is NOT TRUE? ()
A. Method name should use Camel case convention
B. Field name should use Camel case convention
C. Class name should use Pascal case convention
D. Local variable name should use Pascal case convention
Which of the following is TRUE? ()
A. Mycase and mycase are the same as Java is caseinsensitive
B. byte is a keyword and thus it cannot be used as an identifier
C. bit cannot be used as an identifier as it is a unit to store information
D. identifiers can only be used to differentiate two variables
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

LO2 Distinguish among three types of performance information.

Answered: 1 week ago