Arrange the following primitive data types in an ascending order of their size:
(i) char (ii) byte (iii) double (iv) int

1 Answer

Answer :

Ans. The sizes of the given data types are as follows
char = 2 bytes
byte = 1 byte
double = 8 bytes
int = 4 bytes
Arranging them in ascending order gives byte < char < int < double

Related questions

Description : Classify the following as primitive or non-primitive data types: (i) char (ii) arrays (iii) int (iv) classes

Last Answer : Ans. (i) char – Primitive (ii) arrays – Non primitive (iii) int – Primitive (iv) Classes – Non primitive

Description : Classify the following as primitive or non-primitive data types: (i) char (ii) arrays (iii) int (iv) classes

Last Answer : Ans. (i) char – Primitive (ii) arrays – Non primitive (iii) int – Primitive (iv) Classes – Non primitive

Description : If an integer occupies 4 bytes and a character occupies 1 byte of memory, each element of the following structure would occupy how many bytes ? struct name { int age; char name[30]; }; A) 30 B) 32 C) 34 D) 36

Last Answer : C) 34

Description : Which of the following is in the ascending order of Data hierarchy? (1) Byte–Bit–File–Record–Database–Field (2) Field–Byte–Bit–Record–File– Database (3) Bit–Byte–Record–Field–Database–File (4) Bit–Byte–Field–Record–File– Database

Last Answer : Bit–Byte–Field–Record–File– Database

Description : What are the types of casting shown by the following examples: (i) char c = (char)120; (ii) int x = ‘t’;

Last Answer : Ans. (i) Explicit casting (ii) Implicit casting

Description : State the number of bytes occupied by char and int data types.

Last Answer : Ans. char occupies two bytes and int occupied 4 bytes.

Description : Arrange the following devices in ascending order of the speed: A. RAM B. Hard disk C. Cache D. Floppy 1) ABDC 2) BDAC 3) DBAC 4) BADC

Last Answer : 3) DBAC

Description : Which of the following is not the java primitive type A) Byte B) Float C) Character D) Long double

Last Answer : D) Long double

Description : Arrange the following religious groups in increasing order of their population in India: 1. Muslims 2. Buddhists 3. Sikhs 4. Jains 5. Christians (a) IV, II, III, V, I (b) IV, II, I, III, V (c) II, IV, III, V, I (d) II, III, IV, I,V

Last Answer : Ans: (a)

Description : Match List-I (Type of Unemployment) with List-II (Characteristics) and select the correct answer using the codes given below: L ist-I L ist -I I (Type of (Char acter ist ics) Unem ... contribution by the additional labour is nil E. Cyclical V. Job opportunities during certain months in the year

Last Answer : (1) A-V, B-III, C-IV, D-II, E-I

Description : Match List I (Layers of Atmosphere) and List II (Characteristics) and select the correct answer using the code given below. L ist I L i st I I (L ayer of (Char acter ist ics) At mospher e) A. Ionosphere I. Contains Ozone B. ... D-III (3) A-II, B-III, C-I, D-IV (4) A-III, B-I, C-IV, D-II

Last Answer : 2) A-II, B-I, C-IV, D-III

Description : Arrange the following compounds in decreasing order of reactivity for EAR :- (I) `CH_(2)=CH_(2)` (II) `CH_(3)-CH=CH_(2)` (III) `Ph_(2)C=CH-CH_(3)` (IV

Last Answer : Arrange the following compounds in decreasing order of reactivity for EAR :- (I) `CH_(2)=CH_(2)` (II) `CH_(3)- ... I gt IV` D. `II gt III gt IV gt I`

Description : Arrange the following free radicals in order of decreasing stability: Methyl(I), Vinly(II), Allyl(III), Benzyl(IV)

Last Answer : Arrange the following free radicals in order of decreasing stability: Methyl(I), Vinly(II), Allyl(III), Benzyl(IV) ... gt III D. IV gt III gt I gt II

Description : Arrange the following ranges in order as they occur from north to south: 1. Pir Panjal 2. Karakoram 3. Zanskar 4. Ladakh (a) II, IV, III, I (b) II, III, IV, I (c) I, II, IV, III (d) III, II, IV, I

Last Answer : Ans: (a)

Description : Arrange the following Himalayan peaks in order as they occur from west to east: 1. Kanchenjunga 2. Mt. Everest 3. Nanda Devi 4. Dhaulagiri (a) I, II, III, IV (b) I, II, IV, III (c) III, II, I, IV (d) III, IV, II, I

Last Answer : Ans: (d)

Description : Arrange the following hill ranges in order from north to south: 1. Nallamala Hills 2. Nilgiri 3. Anaimalai 4. Cardamon Hills (a) I, IV, III, II (b) I, II, III, IV (c) II, I, III, IV (d) I, II, IV, III

Last Answer : Ans: (b)

Description : Arrange the following Steps of selling process in a proper order in order to help the sales man ? o I. Approach o II. Presentation and demonstration o III. Prospecting and qualifying o IV. Closing sales and follow-up o V. ... 3. I, II, V, III, IV 4. II, I, III, V, IV 5. None of these

Last Answer : I, II, III, IV, V

Description : Arrange the following teaching process in order (i) Relating the present knowledge with the previous knowledge (ii) Evaluation (iii) re teaching (iv) Formulating objectives (v) Presentation of materials (a) (i), (ii), (iii), (iv), (v ... ), (iv), (iii), (i), (ii) (d) (iv), (i), (v), (ii), (iii)

Last Answer : (d) (iv), (i), (v), (ii), (iii)

Description : Arrange the following activities of interaction in logical order (i) Analysis of the work done (ii) Planning and preparation (iii) Presentation of material (iv) Modification and improvement (a) (0 (ii), (Hi), (iv) (b) (ii), (Hi), (i), (iv) (c) (iv). (/), (ii), (Hi) (d) (i), (Hi), (iv). (ii)

Last Answer : (b) (ii), (Hi), (i), (iv)

Description : Arrange the following Acts in the order in which they came into force. (i) The Monopolies Restrictive Trade Practices Act (ii) Indian Contract Act (iii) The Sale of Goods Act (iv) The Foreign Exchange Management Act A. (il), (iii), (i ... (ii) C. (i), (ii), (iii), (iv) D. (iv), (iii), (ii), (i)

Last Answer : B. (iii), (i), (iv) and (ii)

Description : Arrange the following in chronological order: (SSC CGL 2nd Sit. 2012) I. Dandi March II. Simon Commission III. Poona Pact IV. Gandhi Irwin Pact (a) II, I, III, IV (b) II, I, IV, III (c) IV, III, I, II (d) IV, III, II, I

Last Answer : (b) II, I, IV, III

Description : Arrange the following teaching process in order (in) relating the present knowledge with the previous knowledge (ii) evaluation (iii) reteaching (iv) formulating objectives (v) presentation of materials Options: A) (i), (ii), (iii), (iv ... iii), (i) , (ii) D) (iv), (i) , ( v), (ii), (iii)

Last Answer : D) (iv), (i) , ( v), (ii), (iii) 

Description : Arrange the following teaching process in order : (i) Relate the present knowledge with previous one (ii) Evaluation (iii) Reteaching (iv) Formulating instructional objectives (v) Presentation of instructional materials (A) (i), (ii), ( ... ), (iii), (i), (ii) (D) (iv), (i), (v), (ii), (iii)

Last Answer : (D) (iv), (i), (v), (ii), (iii)

Description : Arrange the following books in chronological order in which they appeared. Use the code given below : (i) Limits to Growth (ii) Silent Spring (iii) Our Common Future (iv) Resourceful Earth Codes : (A) (i), (iii), (iv), (ii) (B ... , (iv) (C) (ii), (i), (iii), (iv) (D) (i), (ii), (iii), (iv)

Last Answer : Answer: C

Description : Arrange the following options in ascending order of their BOD value: 1. Sample of highly polluted pond water. 2. Sample from unpolluted pond water. 3.

Last Answer : Arrange the following options in ascending order of their BOD value: 1. Sample of highly polluted pond water. 2. Sample ... -b-a C. c-a-b D. a-c-b

Description : What is the difference between. (i) BIT and BYTE (ii) RAM and ROM (iii) C.U. and A.L.U (iv) Hardware and Software (v) Personal computer and mainframe

Last Answer : Personal computer and mainframe: Personal Computer (PC): Short for personal computer or IBM PC. The first personal computer produced by IBM was called the PC, and increasingly the term ... mainframes and minicomputers is vague, depending really on how the manufacturer wants to market its machines.

Description : Define following : i. Radix ii. Bit iii. Nibble iv. Byte

Last Answer : i. Radix- the base to a given number system is called as radix.  ii. Bit- Single ‗1‘ or ‗0‘ is called as a bit.  iii. Nibble- a group of 4 bits is called as nibble  iv. Byte- a group of 8 bits is called as a byte.

Description : Arrange the correct sequence of column II against the states in column I I. Chikkamagaluru II. Singhbhum III. Durg IV. Koraput -Geography

Last Answer : (a) III – 1, IV – 2, I – 3, II – 4

Description : Arrange the following steps to form a basic Engineering  Process Model. i. Test ii. Design iii. Install iv. Specification v. Manufacture vi. Maintain a) 2, 4, 5, 1, 6, 3 b) 4, 2, 5, 1, 3, 6 c) 2, 4, 5, 1, 3, 6 d) 4, 2, 5, 1, 6, 3

Last Answer : a) 2, 4, 5, 1, 6, 3

Description : Arrange the following events of meiosis in correct sequence (i) Crossing over (ii) Synapsis (iii)Terminalisation of chiasmata (iv) Disappearance of nucleolus (a) (i), (ii), (iii), (iv) (b) (ii), (iii), (iv), (i) (c) (ii), (i), (iv), (iii) (d) (ii), (i), (iii), (iv)

Last Answer : (d) (ii), (i), (iii), (iv)

Description : . Arrange the developments related to European history in a chronological sequence. I. Napoleon invaded Italy. II. Unification of Italy. III. Unification of Germany. IV. Vienna Settlement. (1) I, III, II and IV (2) I, II, IV and III (3) I, IV, II and III (4) I, II, III and IV

Last Answer : (3) I, IV, II and III

Description : Which of the following is not a primitive data type: a) String b) Double c) Boolean d) None of The Above

Last Answer : a) String

Description : Double is a ______ data type. (1) primitive (2) user defined (3) system defined (4) local

Last Answer : primitive

Description : What are the default values of the primitive datatypes int and float?

Last Answer : Ans. The default value of int is 0 and the default value of float is 0.0f.

Description : Give output for following code: class student { int roll no; char name [14]; } s[6]; void main() { cout<<sizeof(s); }

Last Answer : Considering roll_no(Single variable) the output is: 96 OR Considering roll, no (Two variables) the output is: 108 OR Considering roll no the output is: error – space between roll and no

Description : What will be the output of the following segment of the program? main( ) { char *s = “hello world”; int i = 7; printf(“%, *s”, i, s); } (A) Syntax error (B) hello w (C) hello (D) o world

Last Answer : Answer: Marks given to all

Description : Which of the following has compilation error in C ? (A) int n = 32; (B) char ch = 65; (C) float f= (float) 3.2; (D) none of the above

Last Answer : D

Description : Can you arrange the numbers from 1 to 100 so there is no ascending or descending subsequence of length greater than 10?

Last Answer : I’m not sure if I’m misunderstanding your question. Why not just arrange them in 5 number sequences from the beginning and the end of the numbers. 1–5 95–100 6–11 89–94 etc

Description : Arrange the following States on the basis of ascending dates of the onset of monsoon : [NDA 2010] 1. Uttar Pradesh 2. Kerala 3. West Bengal 4. Rajasthan (a) 2-3-1-4 (b) 3-2-1-4 (c) 3-1-2-4 (d) 1-2-3-4

Last Answer : Ans: (b)

Description : Arrange the following acid in decreasing order of their acidic strength : (I) `CH_(3)-OH` (II) `CH_(3)CH_(2)-OH` (III) `CH_(3)-underset(CH_(3))underse

Last Answer : Arrange the following acid in decreasing order of their acidic strength : (I) `CH_(3)-OH` (II) `CH_(3)CH_(2)- ... II gt IV` D. `II gt IV gt III gt I`

Description : Arrange the following in correct order of their stability ? `(I) CH-=overset(Theta)C " "(II) CH_(2)=overset(Theta)CH " "(III) CH_(3)-overset(Theta)CH_

Last Answer : Arrange the following in correct order of their stability ? `(I) CH-=overset(Theta)C " "(II) CH_(2)=overset( ... gt III gt I` D. `II gt I gt III`

Description : The ascending order of a data hierarchy is: a) Bit - Bytes - Field - Record - File - Database b) Bit - Bytes - Record - Field - File - Database c) Bytes - Bit - Record - Field - File - Database d) None of The Above

Last Answer : a) Bit - Bytes - Field - Record - File - Database

Description : Arrange the compounds in order of decreasing acidic strength : (I) `ClCH_(2)-CH_(2)-OH` (II) `Cl_(2)CH-CH_(2)-OH` (III) `Cl-CH_(2)-CH_(2)-CH_(2)-OH` (

Last Answer : Arrange the compounds in order of decreasing acidic strength : (I) `ClCH_(2)-CH_(2)-OH` (II) `Cl_(2)CH-CH_(2 ... IV gt III` D. `II gt I gt III gt IV`

Description : Arrange the following in increasing order as directed. `(a) (i) [CoCl_(3)(NH_(3))_(3)]," "(ii)[CoCl(NH_(3))_(5)]Cl_(2)," "(iii)[Co(NH_(3))_(6)]Cl_(3),

Last Answer : Arrange the following in increasing order as directed. `(a) (i) [CoCl_(3)(NH_(3))_(3)]," "(ii)[CoCl(NH_ ... -),NH^(3),NO^(3)^(-)`-strength of ligands.

Description : A UNIX file system has 1 KB block size and 4-byte disk addresses. What is the maximum file size if the inode contains ten direct block entries, one single indirect block entry, one double indirect block entry and one triple indirect block entry? (A) 30 GB (B) 64 GB (C) 16 GB (D) 1 GB

Last Answer : (C) 16 GB

Description : A unix file system has 1-KB blocks and 4-byte disk addresses. What is the maximum file size if i-nodes contain 10 direct entries and one single, double and triple indirect entry each? (A) 32 GB (B) 64 GB (C) 16 GB (D) 1 GB

Last Answer : (C) 16 GB

Description : Which of the following places the common data elements in order from smallest to largest? a) Character, file, record, field, database b) Character, record, field, file, database c) Character, field, record, file, database d) Bit, byte, character, record, field, file, database

Last Answer : d) Bit, byte, character, record, field, file, database

Description : Which of the following places the common data elements in order from smallest to largest? 1) Character, file, record, field, database 2) Character, record, field, file, database 3) Character, field, record, file, database 4) Bit, byte, character, record, field, file, database

Last Answer : 3) Character, field, record, file, database

Description : Which one of the following sequences in the ascending order of their geographical size is correct? [CDS 2003] (a) Bihar - Chhattisgarh - Jharkhand - Orissa (b) Jharkhand - West Bengal - Tamil Nadu ... West Bengal - Bihar - Chhattisgarh - Tamil Nadu (d) Chhattisgrah - Jharkhand - Tamil Nadu - Orissa

Last Answer : Ans: (b)