Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 17 Which of the following can be used to comment code in Java? Question 17 options: // {* }* ( Question 18 What

Question 17

Which of the following can be used to comment code in Java?

Question 17 options:

\\

//

{*

}*

(

Question 18

What is the output by the code below?

System.out.print("ab\\ab");

Question 18 options:

abab

ab

ab\ab

bab

abb

Question 19

Which of the following lines correctly defines a char variable?

Question 19 options:

char c = 'a';

char = a;

char = "a";

char c = a;

char \"a\";

Question 20

What is the output by the code below? public static void main( String args[] ) { }

Question 20 options:

0

main

nothing

args

String

Question 21

What is the output by the code below? System.out.print("abc"; );

Question 21 options:

abc

a

c

c

cba

Question 22

What is the ASCII value of

'B'?

Question 22 options:

44

97

66

43

65

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions