<<= Back Next =>>
You Are On Multi Choice Question Bank SET 298

14901. Which of the following statements is correct about the C#.NET code snippet given below? class Trial { int i; Decimal d; } struct Sample { private int x; private Single y; private Trial z; } Sample ss = new Sample();






14902. How many bytes will the structure variable samp occupy in memory if it is defined as shown below? class Trial { int i; Decimal d; } struct Sample { private int x; private Single y; private Trial z; } Sample samp = new Sample();






14903. Which of the following will be the correct result of the statement b = a in the C#.NET code snippet given below? struct Address { private int plotno; private String city; } Address a = new Address(); Address b; b = a;






14904. Which of the following statements are correct? A struct can contain properties. A struct can contain constructors. A struct can contain protected data members. A struct cannot contain methods. A struct cannot contain constants.





14905. C#.NET structures are always value types.



14906. When would a structure variable get destroyed?





14907. Which of the following statements is correct about the C#.NET code snippet given below? struct Book { private String name; private int noofpages; private Single price; } Book b = new Book();






14908. Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main(string[] args) { Sample x = new Sample(); x.i = 10; fun(ref x); Console.Write(x.i + " "); } public static void fun(ref Sample y) { y.i = 20; Console.Write(y.i + " "); } } }






14909. How many numbers from 1 to 20 have a squares that end in the digit 4?





14910. Which of the following statements are correct about the structure declaration given below? struct Book { private String name; protected int totalpages; public Single price; public void Showdata() { Console.WriteLine(name + " " + totalpages + " " + price); } Book() { name = " "; totalpages = 0; price = 0.0f; } } Book b = new Book(); We cannot declare the access modifier of totalpages as protected. We cannot declare the access modifier of name as private. We cannot define a zero-argument constructor inside a structure. We cannot declare the access modifier of price as public. We can define a Showdata() method inside a structure.





14911. Which of the following are true about classes and struct? A class is a reference type, whereas a struct is a value type. Objects are created using new, whereas structure variables can be created either using new or without using new. A structure variable will always be created slower than an object. A structure variable will die when it goes out of scope. An object will die when it goes out of scope.





14912. Which of the following will be the correct output for the program given below? namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main(string[] args) { Sample x = new Sample(); Sample y; x.i = 9; y = x; y.i = 5; Console.WriteLine(x.i + " " + y.i); } } }






14913. Which of the following statements are correct about Structures used in C#.NET? A Structure can be declared within a procedure. Structs can implement an interface but they cannot inherit from another struct. struct members cannot be declared as protected. A Structure can be empty. It is an error to initialize an instance field in a struct.





14914. The space required for structure variables is allocated on stack.



14915. Creating empty structures is allowed in C#.NET.



14916. Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main() { Sample x = new Sample(); x.i = 10; fun(x); Console.Write(x.i + " "); } static void fun(Sample y) { y.i = 20; Console.Write(y.i + " "); } } }






14917. Which of the following is the correct way of setting values into the structure variable e defined below? struct Emp { public String name; public int age; public Single sal; } Emp e = new Emp();






14918. Which of the following is the correct way to define a variable of the type struct Emp declared below? struct Emp { private String name; private int age; private Single sal; } Emp e(); e = new Emp(); Emp e = new Emp; Emp e; e = new Emp; Emp e = new Emp(); Emp e;





14919. If 3A=5B and 2B=3C then A:C is





14920. If 2x+4=16 then the value of x is





14921. What is the ratio between 1 hour 15 minutes and 2 hour 05 minutes?





14922. How many natural numbers are there between 24 and 114 which are completely divisible by 7?





14923. The sum of two numbers is The difference between them is Find their product.





14924. The following type of bonding is strongly directional in solids.




14925. Fog is an example of colloidal system of





14926. Chromium molybdenum steel can not be welded using __________ welding.





14927. Speisses is a mixture of the following:





14928. Auto collimator is used to check





14929. In troposphere (the weather domain), the temperature 't' at height 'h' above the sea level in metres is given by (where, temperature at sea level is 15°C and t is in °C.)





14930. A high pressure boiler generates steam at a pressure greater than __________ kg/cm2 .





14931. Evaporative cooling process employs a combination of cooling and humidification in which the





14932. Which of the following is not an explosive ?





14933. Maxwell's thermodynamic relations applies to the





14934. Annealing ofwhite cast iron produces __________ iron.





14935. Resistance of an electrical conductor is proportional to its (where, l = length and A = cross-sectional area of the conductor)





14936. A solar cell converts the sunlight directly into __________ energy.





14937. If a nuclear reactor produces more fissile nuclear fuel than it consumes, then it is called a __________ reactor.





14938. Wrought iron is never shaped by





14939. Powder metallurgy process does not make metal powder by





14940. In the blast furnace, incorporation of water vapour in the blast gives the following effect.





14941. Pick out the wrong statement.




14942. The usual energy consumption in electric arc furnace steel making is __________ KWh/ton of steel.





14943. Maximum permissible air velocity in pipelines is about __________ metre/second.





14944. Area under the stress-strain curve upto the __________ is referred to as the modulus of resilience.





14945. __________ is the hardest oxide and is hence used where high wear resistance at high temperature is required.





14946. Titanium alloys are welded using the Following process:





14947. An alloy of Fe - 0.4 % C is





14948. A material in which the atoms are arranged regularly in some directions but not in others, is termed as 'mesomorphous material'; an example of which is





14949. In extrusion of metals, which of the following statement is true ?





14950. Nuclear fission of one atom of uranium-235 produces the energy equivalent to about __________ MeV.





<<= Back Next =>>
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 | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions