Professional Documents
Culture Documents
Assignments 1
Assignments 1
1 Assignments
1.1.1 Answer the following questions. Use the space below each question for your calculations and notes.
1. Which primitive type would be best to represent the number of employees in a medium sized organization? A) int B) float C) double D) char
2. Which primitive type would be best to represent Indias population? A) int B) char C) double D) long
3. Which of the following is a valid variable name? A) Total_mark B) 3totalmark C) total mark D) int
A) B) C) D)
A) B) C) D)
a = 5, b = 3 a = 5, b = 3, c = 0 a = 5, b = 3, 0 Compilation error
6. What will be the value of x after the expression given below is executed?
x = (a = 10, a * a)
A) B) C) D)
A) B) C) D)
A) B) C) D)
x is a four digit integer x cannot be greater than a four digit integer x is a four bit integer None of these
A) B) C) D)
4 0 1 6
A) B) C) D)
A) B) C) D)
A) B) C) D)