Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need All the answers please Syntax is: Symbols or words that perform operation

ID: 3573401 • Letter: I

Question

I need All the answers please Syntax is: Symbols or words that perform operations Rules that must be followed when writing a program Punctuation Words that have a special meaning in the programming language These are used to indicate the end of a Java statement. Periods Colons Asterisks Semicolons In Java, must be declared before they can be used. literals key words variables comments When the + operator used with strings, it is known as the: Combined assignment operator Assignment operator Addition operator String concatenation operator A class's responsibilities include: the things a class is responsible for knowing the things a class is responsible for doing both A and B neither A nor B Which of the following is NOT a rule that must be followed when naming identifiers? Identifiers contain spaces. Uppercase and lowercase characters are distinct. After the first character, you may use the letters a-z, A-Z, the underscore, a dollar sign, or digits 0-9. The first character must be one of the letters a-z, A-Z, and underscore or a dollar sign. This type of method performs a task and sends a value back to the code that called it. void complex local value-returning Which of the following statements will create a reference, str, to the string, "Hello, world"?; string str = new String ("Hello, world"); String str "Hello, world"; 1 2 l and 2 neither 1 or 2 What is the result of the following expression? 10 + 5 + 3 - 20 -50 25 -5 5 Which of the following is NOT a primitive data type? float String short. Long

Explanation / Answer

Ans)

1.B Rules that must be followed when writing a program
       -Set of rules must be followed while writing a program
2.D semicolons
       -semicolon indicates the termination of a java statement.
3.C Variables
       -Variables must be declared before they must be used in java.
4.D String concatenation operator
       -In strings + operator is used for concatenation.
5.C both the things a class is responsible for doing and the things a class is responsible for knowing
6.A Identifiers can contain spaces
-In java identifers should not contain spaces.
7.value-returning
       The method that returns a value is called value returning method.
8.C both String str = new String("Hello, world"); and String str = "Hello, world"; will create a reference str.
9. D 5
       10 + (5*3) - 20 = 10 + 15 - 20 = 25 - 20 = 5
10.A String
       - A string is not a primitive datatype.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote