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

1 Answer

Answer :

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

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 : Arrange the following primitive data types in an ascending order of their size: (i) char (ii) byte (iii) double (iv) int

Last 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

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 : 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 : 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 : What are the datatypes a available in PL/SQL ?

Last Answer : Some scalar data types such as NUMBER, VARCHAR2, DATE, CHAR, LONG, BOOLEAN. Some composite data types such as RECORD & TABLE.

Description : what are the datatypes supported By oracle (INTERNAL)?

Last Answer : Varchar2, Number,Char , MLSLABEL.

Description : What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?

Last Answer : % TYPE provides the data type of a variable or a database column to that variable. % ROWTYPE provides the record type that represents a entire row of a table or view or columns selected in ... database definition of a column in a table changes, the data type of a variable changes accordingly.

Description : what are the datatypes supported By oracle (INTERNAL)

Last Answer : Varchar2, Number,Char , MLSLABEL.

Description : Can the default values be assigned to actual parameters?

Last Answer : Yes

Description : Which of the following elements constitutes the frame structure? a) Facts or Data b) Procedures and default values c) Frame names d) Frame reference in hierarchy

Last Answer : a) Facts or Data

Description : What are the default or implicitly assigned values for data types in java ?

Last Answer : Ans. boolean ---> false byte ----> 0 short ----> 0 int -----> 0 long ------> 0l char -----> /u0000 float ------> 0.0f double ----> 0.0d any object reference ----> null

Description : ……………….. contains information that defines valid values that are stored in a column or data type. A) View B) Rule C) Index D) Default

Last Answer : C) Index

Description : What will be the values of x, m and n after execution of the following statements? Int x, m, n; m=10; n=15; x= ++m + n++; A) x=25, m=10, n=15 B) x=27, m=10, n=15 C) x=26, m=11, n=16 D) x=27, m=11, n=16

Last Answer : C) x=26, m=11, n=16

Description : Kernel is: a) Considered as the critical part of the operating system b) The software which monitors the operating system c) the set of primitive functions upon which the rest of operating systems functions are built up d) None of The Above

Last Answer : c) the set of primitive functions upon which the rest of operating systems functions are built up

Description : Automatic conversion from primitive type to an object of the corresponding wrapper class is called: a) Coercing b) Casting c) Boxing d) Widening e) None of The Above

Last Answer : c) Boxing

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 : Write one difference between primitive data types and composite data types.

Last Answer : Ans. A primitive data type is not composed of other data types. Ex: int, float, double while a composite data type is composed of other data types. Ex: class

Description : PSW stands for (1) Program status word (2) Processor status word (3) Process status word (4) Primitive status word

Last Answer : Program status word

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

Last Answer : primitive

Description : Write the memory capacity (storage size) of short and float data type in bytes

Last Answer : Ans. short data type is of 2 bytes and float is of 4 bytes

Description : Taking back of property by a seller or a lender from the buyer or borrower due to default of payment is termed as ________ A. Reconveyance B. Repossession C. Recurring Billing D. Revalidation

Last Answer : B. Repossession Explanation: Repossession is a term used to denote a financial institution taking back an object that was either used as collateral or rented or leased.

Description : The unpaid principal balance of a loan on property divided by the asset‟s appraised value is termed as ______ A. Liquidity Adjustment Facility B. Loss Given Default(LGD) C. Loan to Value(LTV) D. Long term liabilities

Last Answer : C. Loan to Value(LTV) Explanation: The loan-to-value (LTV) ratio is a financial term used by lenders to express the ratio of a loan to the value of an asset purchased. The term is ... to represent the ratio of the first mortgage lien as a percentage of the total appraised value of real property.

Description : Loans granted by a bank to an exporter popularly known as „Export credit‟ is guaranteed, in case of default,by which of the following A. EXIM Bank B. Ministry of International Trade, GOA C. ECGC D. DICGC E. Other than those given as options

Last Answer : C. ECGC Explanation: ECGC Limited (Formerly Export Credit Guarantee Corporation of India Ltd) is a company wholly owned by the Government of India based in Mumbai, Maharashtra. It provides export credit insurance support to Indian exporters and is controlled by the Ministry of Commerce.

Description : The default view in Excel is ____view: a) Normal b) Roman c) Auto d) Work e) None of These

Last Answer : a) Normal

Description : The ______setting are automatic and standard: a) Default b) CPU c) Peripheral d) User Friendly e) Defaulter

Last Answer : a) Default

Description : What is created when you use F11 shortcut key while creating a chart in MS Excel: a) A default chart b) A 2 dimensional column chart c) A 2 dimensional bar chart d) A 3 dimensional line chart e) None of The Above

Last Answer : b) A 2 dimensional column chart

Description : What does DOS stands for: a) Disk Originating System b) Dynamic Operating System c) Disk Operating System d) Default Operating System e) None of The Above

Last Answer : c) Disk Operating System

Description : To default view in EXCEL is ______view: a) work b) auto c) normal d) roman e) None of The Above

Last Answer : c) normal

Description : By default, your documents print in - mode. 1) Landscape 2) Portrait 3) Page Setup 4) print View

Last Answer : 1) LAN

Description : What is the default file extension for all Word documents? 1) txt 2) wrd 3) doc 4) none of these

Last Answer : 3) doc

Description : Default reasoning is another type of ⮚ Analogical reasoning ⮚ Bitonic reasoning ⮚ Non-monotonic reasoning ⮚ Monotonic reas

Last Answer : ⮚ Non-monotonic reasoning

Description : hat information is conveyed by the SSID that is configured on an IoT device? a.the registration server b.he default gateway c.the wireless network d.the home gateway

Last Answer : c.the wireless network

Description : By default, to run an application through mouse, which one of the following has to be done ? (1) Right click (2) Left click (3) Single click (4) Double dick

Last Answer : Double dick

Description : If int y = 10 then find int z = (++y * (y++ + 5));

Last Answer : Ans. Increment operator has the highest precedence. So, ++y and y++ will be evaluated starting from left. In ++y, the value of y will be incremented to 11 and then 11 will be used in the expression. When y++ is evaluated, the current ... int z = (++y * (y++ + 5)); = 11 * (11 + 5 ) = 11 * 16 = 176

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 : int res = ‘A’; What is the value of res?

Last Answer : Ans. res will hold the ASCII value of ‘A’ which is 65.

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 : Seventy five years from now, what things we have today that they will call primitive?

Last Answer : I’m hoping criminals. I hope in 75 years doctors will be able to fix people with mental defects that cause them to kill or rape or torture other people. Mental illness will be a thing of the past and prisons will become musiums or be converted to dorm rooms.

Description : What can be changed to make some of the rather primitive and boring Olympic events more interesting?

Last Answer : Alligators in the pool?

Description : What is it about the wild primitive sound of a pack of coyotes hunting and howling at night that touches someplace deep inside of you?

Last Answer : answer:They were more likely defining or claiming their territory from the neighboring groups of coyotes, especially at night. They generally don't vocalize much when hunting, they don't want to give ... been when I find the seam between two rival groups and start using challenge calls on them.

Description : Who left his primitive tribe and went to Europe, then wrote a book about it?

Last Answer : Are you thinking of Oofty Goofty, the Wild Man of Borneo, from the late 1800’s?

Description : Stories or books about a character regressing/reverting to a primitive culture?

Last Answer : answer:Lord of the Flies by William Golding Not exactly voluntarily. This one probably fits better: Into the Wild Can’t remember who wrote it.

Description : Can you give me examples of societies in existence today that would be seen as primitive, but sound good to you?

Last Answer : answer:The San, the Hadza, a few Inuit groups, the Mbuti, a handful of Cree groups that still live mostly by trapping, etc. etc. I might have a more complete list and explanations when I come back from doing some work. :)

Description : Do you think one day eating meat will be viewed upon as barbaric and primitive?

Last Answer : answer:I suspect the middle and lower parts of society will come to think of it as barbaric. The rich will continue to consume it as a status symbol.

Description : What is our most primitive emotion, and have we evolved beyond it?

Last Answer : It seems like survival would be the #1 priority, so maybe fear and defense would be somewhere near the top of the emotions list. As for whether human emotions have changed over time, I doubt it. As far ... impact on how we act, at least in public, but the basic emotions still seem to stick around.

Description : Ladies, if you're ever primitive camping or just hanging out in the woods without access to a loo, do you ever get a tad jealous of how that's not really a problem for a man?

Last Answer : a resounding YES!! I literally have nothing else to add. lol

Description : What was the longest/hardest time you've had, living in some primitive conditions?

Last Answer : I did go three weeks without power after a hurricane. In highschool I use to get dropped of in the middle of nowhere with a couple friends and we would camp a couple weeks at a time during the summer. One ... , and two sleeping bags. We also had a knife and a bunch of cans of spaghetti. It was fun.

Description : Will global warming force us to be more primitive?

Last Answer : answer:I totally believe in global warming. I believe that it is fact. That said.. I think it will occur slowly enough that we can deal with it in baby steps. Let me say this again. Global Warming is man made, we need to fix it.

Description : For 3D modeling of automobile body styling, which of the following is a preferredtechnique a.Constructive Solid Geometry b.Pure Primitive Instancing c.Boundary Representation d.Spatial Occupancy Enumeration

Last Answer : c.Boundary Representation