QUESTIONS AND ANSWERS | 100% RATED CORRECT | 100% VERFIED
| ALREADY GRADED A+
What are mathematical operators? - (ANSWER)Addition: +
subtraction: -
Multiplication: *
Divison: /
Modulus (remainder): %
What are relational Operators? - (ANSWER)"==" equals to
"!=" not equals to
">" greater than
"<" less than
">=" greater than or equal to
"<=" less than or equal to
What is the Basic Program Structure for any language? - (ANSWER)Class Name
Main Method
,Input/Read Statement, Output/Write Statement Assignment Statement
What are the logical operators? - (ANSWER)And &&
OR ||
NOT !
What is the Operator Precedence? - (ANSWER)The set of rules that dictates the order in which
operators are evaluated in an expression.
1. Math
2. Relational
3. Logical
Name the 8 primitive dative types - (ANSWER)byte, short, int, long, float, double, boolean, and
char
What is the best way to tackle a coding problem? - (ANSWER)IMPO
Input - what info do you need from the user?
Memory - What do I need to store?
Processing - What calculations do I need?
,Output - What will I display to the user?
What is abstraction? - (ANSWER)It is reducing information and detail to focus on essential
characteristics.
What is pseudocode? - (ANSWER)It is shorthand notation used in programming that combines
informal programming structures and verbal descriptions of code
What is a variable? - (ANSWER)A chunk of the computer's memory that can hold a value and a
"type"
What are the characteristics of an array? - (ANSWER)1. Can be broken down into elements
2. Series is of the same data type
3. Uses [ ] to create and access them
4. Starts with an index of 0
5. Fixed size
What is an algorithm? - (ANSWER)It is a step by step procedure for solving a problem.
, What is white space? - (ANSWER)empty area and ignored in program but enhances readability
What is the Skeleton Program - (ANSWER)It defines the entry/starting point. Smallest program
you can write - it does nothing.
Begin Main
End Main
What are the five components of an algorithm? - (ANSWER)1. Data Structures to hold data
2. Instructions to change data value
3. Conditional expressions to make decisions
4. Control structures to act on decisions
5. modules to make manageable by abstraction
What is a string literal? - (ANSWER)Contains 0 or more characters enclosed with double quotes
What is an expression? - (ANSWER)It is a combination of one or more operators and operands
What is an operand? - (ANSWER)They may be literals, constants, and variables