Languages [TCS Placement]: Sample Questions 59 - 60 of 131
Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 59
Explanation
- No. “Int” data type is capable of storing values from -32768 to 32767.
- 32768 can be used as “long int” instead.
- “unsigned int” can also be used if negative values are not to be used.
- C compiler will not throw any error when 32768 is assigned to an integer type variable. But the actual value in that integer type variable will be -32768.
- In C programming language the range or size of integer data type is circular- a value greater than 32767, is automatically converted to next value that՚s, -32768.
- A value less than -32768 is automatically converted to the next value: 32767.
Question 60
Explanation
- Native Image Generator (Ngen. exe) creates a native image from an assembly and stores that image to native image cache on the computer.
- Whenever, an assembly is run, this native image is automatically used to compile the original assembly, improving the performance of the managed application by loading and executing an assembly faster.
- Native images consist of compiled processor-specific machine code. The Ngen. exe tool installs these files on to the local computer.