Computer Science, asked by tanwarshashi1996, 7 months ago

Which of the following statements is wrong?
निम्नलिखित कथनों में से कौन सा गलत है?
Select one:
O A. count+5=result
count+5=result
O B. value=''+5
value=''+5
C. lime=20't
lime=20't
D. int=123;
int=123​

Answers

Answered by SahiliDessai1998
1

Answer:

i. result = (5/10) * Math.sqrt( a );

(5/10) will lead to integer division as both numerator and denominator are integers. So result of (5/10) will be 0 instead of 0.5 and the entire expression will always result in 0.

ii. result = math.sqrt(b * b - 4 * a * c) / ( 2 * a );

math should be written as Math. As Java is case-sensitive so it treats math and Math differently.

Answered by Jasleen0599
0

Option c)  lime=20't

  • In a computer programming language, a variable's declaration is a statement that identifies the variable's name and data type. Declarative code informs the compiler of the presence and position of an entity in the program. You should initialize a variable as soon as you declare it.
  • A variable is considered to be initialized when a value is assigned to it for the first time. The assignment operator is represented by the symbol =. On addition, you can create a variable and then give it a value in the same line by writing int i= 9 rather than int i and then i = 9.
  • A declaration outlines the entity's distinctive name, along with details on its type and other attributes. A name is first made available to the compiler in C++ at the time of name declaration.
  • Declarative code can be embedded within executable code using the declare construct. The proclaim construct creates global declarations and declarations that are computed by a program.

#SPJ1

Similar questions