AMCAT Data Types Questions Computer Programing Section 2018: AMCAT exam offers job aspirants a platform to showcase their profiles to recruiting companies. Many corporate companies AMCAT score for hiring. To write AMCAT, IT candidates need to take up AMCAT Computer Programing Section.
AMCAT Data Types Questions-Computer Programming Section
AMCAT exam consists of Quantitative and Reasoning ability and English as mandatory sections of the test. For IT jobs, Computer Programming section also needs to be attended.
Under Computer Programming, questions are asked from basic programming concepts that includes Data Types. Below we will find out more about AMCAT Data Types Questions.
Overview of Data Types
As the name says Data Types is a classification of data, to ease the process of compiling. It indicates the program that how the user wants to use a particular data within the scope of the program. Basically, data types are classified into primitive or in built data types and user defined data types.
Primitive Data Type includes-
- Character as char, range(-128 to 127)
- Number as int, range(-32,768 to 32,767)
- Small number as short, range(-32,768 to 32,767)
- Long number as long, range(-2,147,483,648 to 2,147,483,647)
- Decimal number as float, range(1.2e^-38 to 3.4e^38 upto 6 decimal places)
User defined data types are complex and defined using the in built data types. String is a combination of characters. For example, ‘a’ is a character and ‘name’ is a string.
Note:- Char is 2 bytes,int is of 2 bytes, short is of 2 bytes, long is of 4 bytes and float is of 4 bytes.
Sample Questions on Data Types
Find below the sample questions on data types in Computer Programming section
1. Which of the following does not store a sign
Answer: Option D
2. Which of the following is the correct default value of a Boolean type?
Answer: Option D
3. Which of the following is not derived type of Data Type?
|A. Pointer types|
|B. Array types|
|C. Enum Type|
|D. Structure types|
|E. Union types|
Explanation: All except, Enum Type are derived type
4.Usain Bolt runs 400 meters race, the timekeeper wants to write a program to save his track timing what kind of a data type should he be using to store the temporary data?
Explanation: The double type of data will give him the highest precision. e.g – 9.59716 secs
5. What is the storage size and the range for short?
|A. 4 bytes, 65,534|
|B. 2 bytes, 65,534|
|C. 2 bytes, -32,768 to 32,767|
|D. 4 bytes, -32,768 to 32,767|
Explanation: Short number is of 2 bytes and ranges from -32,768 to 32,767
AMCAT Data Types Questions Solution PDF download
Hope this helps you in getting an idea of AMCAT Data Types Questions. For any queries please comment below.
If you want to give AMCAT exam then try below discount code and get 100 Flat off.
Looking for AMCAT Discount? – check here AMCAT Discount Code
More Articles AMCAT CSE Questions Paper:
- Iteration, Recursion, Decision
- Procedure, functions and scope
- Arrays, Linked Lists, Trees, Graphs (Data Structure)
- Stacks, Queues
- Hash Tables
- Heaps Questions
- Searching and Sorting
- Complexity Theory