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

41. What is the result of the following expression? 25- 7 * 3 + 12/ 3 6 8 10 12

ID: 3809642 • Letter: 4

Question

41. What is the result of the following expression?

       25- 7 * 3 + 12/ 3

6

8

10

12

43. Which of the following statements correctly creates a scanner object for keyboard input?

Scanner kbd= new scanner (system. Keyboard);

Scanner keyboard(syatem.in);

Scanner keyboard = new scanner (system.in);

Keyboard scanner = new keyboard (system.in)/

45. Which of the following expression will determine whether x is less than or equal to y?

x>y

x=<y

x<=y

x>=y

47. What will be the value of ans after the following code has been executed?

Int ans = 10;

Int x = 65;

Int y = 55;

If (x >=y)

Ans = x + y

10

120

100

No value, there is a syntax error

49. A block of code is enclosed in a set of

Braces {}

Parentheses ()

Double quotes ““

Brackets []

51. Enclosing a group of statements inside a set of braces creates a

Block of statements

Boolean expression

Loop

Nothing, it is just for readability

53. If a loop does not contain within itself a way to terminate, it is called a(n)

While loop

do-while loop

for loop

infinite loop

55. What will be the value of x after the following code is executed?

Int x = 10;

While (x<100)

{

X+=10;

}

90

100

110

This is an infinite loop

57. How many times will the following for loop be executed?

For (int count = 10; count <=21; count++)

System.out.printIn (“java is great!!!”);

1

10

11

0

59. This is a value that signals when the end of a list of values has been reached.

Terminal value

Final value

End value

Sentinel

TRUE/FALSE

61. Application software refers to programs that make the computer useful to the user.

63. logical errors are mistaken that cause the program to produce erroneous results.

65. what are the 3 types of the loop?

67.Define the following terms: a-Algorithm b-flowchart

69. List 3 data types

Explanation / Answer

Answers:
41)8
43)Scanner keyboard = new scanner (system.in);
45)x<=y
47)120
49)Braces {}
51)Block of statements
53)infinite loop
55)100
57)11
59)Sentinel
61)True
63)True
65)for,while and do-while
67) Algorithm:A set of rules for problem solving operations
Flow Chart:It is a digram that represents flow of an algorithm.
69)int,float,char

Note:Please do ask in case of any doubt,thanks.  

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