Create an Address class, which contains street#, house#, city and code (all of type char*).
Create another class Person that contains an address of type Address. Give appropriate get
and set functions for both classes. Test class person in main.
Create a counter class, overload ++ operator for counter post and pre increment, use the
object of counter class as a loop counter for printing a table in main function.
which of the following is the reference data type ?
Select one:
a. array
b. int
c. short
d. double
What is the output of this program?
Select one:
a. 1
b. Runtime error owing to division by zero in if condition.
c. 2
d. Unpredictable behaviour of program.
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–