Computer Revision
Computer Revision
B. Write T for the true statement and F for the false one. Correct the false
statement(s).
1. In Java, a class is a capsule of data members and member functions.
2. To run a Java program, double-click the compiled class.
3. A variable name can start with a digit.
4. Java is a low-level programming language.
5. Binding code and data together into a single unit is known as polymorphism.
6. A Java string constant consists of more than one character enclosed in double
quotes.
7. Instagram is a hybrid app.
8. maps.google.com is desktop app.
4. The method of assigning a value and defining the data type at the same time is
called
a. encapsulation b. initialization
c. polymorphism d. object
E. Application-Based Questions.
1. What will be suitable data types for the following constant values?
i. 101 ii. “123” iii. ‘A’ iv. 23.4351 v. true
3. Find out the invalid identifier from the list given below:
3
Rollno1, A12B, _A1, 1Salary, Emp_Name
Column A Column B
1. BlueJ a. Initialization
2. float b. Java editor
3. = c. Data type
4. int a=0; d. assignment operator