What is the result of the following Java coding snippet?
class TestApp {
public static void main() {
int odd = 1;
if (odd) {
System.out.println("odd");
} else {
System.out.println("even");
}
}
}
Select one:
A. odd
B. Type mismatch error
C. Run-time exception
D. even
The electric filed due in a static electric charge is 3 000 N/C and passes through a surface area of 0.3 m2. Calculate the electric flux
What are three biochemical mechanism of antioxidants used in combating oxidative stress
Write a C++ program that creates a 2D array having 4 rows and 4 columns. Then, ask the user to input values for the 2D array or matrix. After that, the program should calculate transpose of a matrix. Transpose is basically calculated by changing rows of matrix into columns and columns into rows. After calculating, display the final matrix?
Write a program to take input for n book records from user and write those book records in a file named: ”record”, whose price is less than INR 500 . Program should also perform random access in the file, after taking input for a particular record number to read and it should also perform random record overwriting after taking input of new record and the record number to overwrite. After overwriting record, display all records on the screen. [Attributes of book: Book_id, Book_price, Book_name, Book_author_name]
Which of the following is a conjugate acid-base pair?
A. F– and HCO3–
B. F– and H2CO3–
C. HF and F–
D. HF and H2CO3–
A solution with a pH of 5.0 ______.
A. has a hydrogen-ion concentration of 5.0 M
B. has a hydrogen-ion concentration of 1 x 10-5 M
C. is basic
D. is neutral
Write a program to perform class to basic conversion [such as : class is : Triangle with data members base and height (float), and basic type is float(area of triangle)].
An object is placed at a distance of 4.5 cm to the left of a convex lens A of focal
length 4 cm.
(a) Find the distance from lens A where a screen should be placed to obtain the image.
(b) The screen is removed and the image is used as an object for a diverging lens B of
focal length 2 cm so that a real image is formed at a distance of 8 cm from lens B.
Find the distance between lens A and lens B.
Write a program to overload operators in the same program by writing suitable operator friend function for following expression.
O7=((O1>=O2)+(O3&&O4) *(O5<O6)) [here O1,O2,O3,O4,O5,O6 and O7 are object of a class ''overloading", and this class is having one integer data member]