Q1/
y computes the sum of int value 2 with itself i.e. the int value 4.
t computes the concatenation of the String 2 with itself i.e., the String value “22”.
Q2/
dm = m * ((Math.sqrt(1 + v / c) / Math.sqrt(1 - v / c)) - 1);
volume = 4 * Math.PI * Math.pow(r, 3) / 3;
Q3/
Q4/
99*5 = 495
4%2 = 0
0/6 = 0
495 + 0 = 495
(18-4) = 14
14*2 = 28
495 + 28 = 523
Q5/
public class CheckPassFail ** // Save as "CheckPassFail.java"
public static void main(String[] args) ** // Program entry point
int mark = 59; // Set the value of "mark" here!
System.out.println("The mark is " + mark);
if ( mark>=60 ) **
System.out.println("Student"+pass);
** else **
System.out.println( "Student"+fail );
**
**
**
Q6/
هذا حلي والبقية ماكملتها وبالتوفيق للجميع
واذا فيه خطأ ياليت احد يعدل لنا