1. Which of the following is the correct default value of a Boolean type?






Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->The Boolean expression A(B+C)+AB+AC is independent of the Boolean variable:....
QA->Which is not correct as regards to an open type combustion chamber?....
QA->Which type if lens is used to correct astigmatism?....
QA->Which type of lens is used to correct the defect of visioncalled Astigmatism....
QA->Minimum number of AND gates required to implement the Boolean expression:ABC’ +AB’C +A’BC is....
MCQ->What will be the output of the program? public class BoolTest { public static void main(String [] args) { int result = 0; Boolean b1 = new Boolean("TRUE"); Boolean b2 = new Boolean("true"); Boolean b3 = new Boolean("tRuE"); Boolean b4 = new Boolean("false"); if (b1 == b2) / Line 10 / result = 1; if (b1.equals(b2) ) / Line 12 / result = result + 10; if (b2 == b4) / Line 14 / result = result + 100; if (b2.equals(b4) ) / Line 16 / result = result + 1000; if (b2.equals(b3) ) / Line 18 / result = result + 10000; System.out.println("result = " + result); } }....
MCQ-> The English alphabet is divided into five groups. Each group starts with the vowel and the consonants immediately following that vowel and the consonants immediately following that vowel are included in that group. Thus, the letters A, B, C, D will be in the first group, the letters E, F, G, H will be in the second group and so on. The value of the first group is fixed as 10, the second group as 20 and so on. The value of the last group is fixed as 50. In a group, the value of each letter will be the value of that group. To calculate the value of a word, you should give the same value of each of the letters as the value of the group to which a particular letter belongs and then add all the letters of the word: If all the letters in the word belong to one group only, then the value of that word will be equal to the product of the number of letters in the word and the value of the group to which the letters belong. However, if the letters of the words belong to different groups, then first write the value of all the letters. The value of the word would be equal to the sum of the value of the first letter and double the sum of the values of the remaining letters.For Example : The value of word ‘CAB’ will be equal to 10 + 10 + 10 = 30, because all the three letters (the first letter and the remaining two) belong to the first group and so the value of each letter is 10. The value of letter BUT = $$10 + 2 \times 40 + 2 \times 50 = 190$$ because the value of first letter B is 10, the value of T = 2 $$\times$$ 40 (T belongs to the fourth group) and the value of U = 2 $$\times$$ 50 (U belongs to the fifth group). Now calculate the value of each word given in questions 161 to 165 :AGE
 ....
MCQ->Which of the following statements are correct? We can assign values of any type to variables of type object. When a variable of a value type is converted to object, it is said to be unboxed. When a variable of type object is converted to a value type, it is said to be boxed. Boolean variable cannot have a value of null. When a value type is boxed, an entirely new object must be allocated and constructed.....
MCQ->Which of the following statements are correct about data types? Each value type has an implicit default constructor that initializes the default value of that type. It is possible for a value type to contain the null value. All value types are derived implicitly from System.ValueType class. It is not essential that local variables in C# must be initialized before being used. Variables of reference types referred to as objects and store references to the actual data.....
MCQ->Which three statements are true? The default constructor initialises method variables. The default constructor has the same access as its class. The default constructor invokes the no-arg constructor of the superclass. If a class lacks a no-arg constructor, the compiler always creates a default constructor. The compiler creates a default constructor only when there are no other constructors for the class.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions