What is computer programming? - correct answer ✔The process of
specifying the data types and the operations for a computer to apply to data in
order to solve a problem.
Programming Life Cycle Phases - correct answer ✔1.Problem Solving
2.Implementation
3.Maintenance
Class Vs. Object - correct answer ✔Class: a description of the
representation of a specific kind of object, in terms of data and behavior.
Object: an instance of a class.
What is a byte code? - correct answer ✔
What is an algorithm? - correct answer ✔instructions for solving a problem in
a finite amount of time using a finite amount of data.
A __________ is a text parser that can get numbers, words, or phrases from
an input source such as a keyboard.
Scanner
Method
System.out - correct answer ✔Scanner
,Which of the following statements will allow you to print the name Mary Smith
to the screen?
Input("Mary Smith");
Scanner name.next("Mary Smith");
System.out.print("Mary Smith");
System.in("Mary Smith"); - correct answer ✔System.out.print("Mary Smith");
The code below outputs Jane Williams on different lines and then starts a new
output line.
Code Example:
System.out.println("Jane");
System.out.print("Williams");
Output:
Jane
Williams
T or F - correct answer ✔False
, What will the following code output?
Code:
int feet = 5;
int inches = 3;
System.out.print("Mary you are " + feet + " feet " + inches + " inches tall.");
Mary you are 5 feet 3 inches tall.
Mary you are feet inches tall.
Mary you are feet feet inches inches tall.
"Mary you are " + 5 + " feet " + 3 + " inches tall."
"Mary you are " + feet + " feet " + inches + " inches tall." - correct answer
✔Mary you are 5 feet 3 inches tall.
Which of the following is are incorrect ways to include multi-line comments in
your code?
/*Declare all variables/*
*/Declare all variables*/
*/Declare all variables/*
/*Declare all variables*/ - correct answer ✔/*Declare all variables/*
*/Declare all variables*/
*/Declare all variables/*