Syntax is: Symbols or words that perform operations Rules that must be followed
ID: 3573405 • Letter: S
Question
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 is 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 can 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 1 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 longExplanation / Answer
1.B) Rules that must be followed when writting a program
2.D)Semi Colons
3.C) variables
Java will permit you to declare a variable wherever in the program providing the variable is declared previous to you utilize it.
4.D) string concatination operator
9.D)5
10.B) String
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.