Answered step by step
Verified Expert Solution
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
Bclass
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 HomeCat
C Smallcat
D redHat
Which of the following is the best identifier for an attributefield
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started