View Count: 0
Duration: 16 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 36 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 36 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 36 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 20 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 25 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 40 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 50 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 9 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 46 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 36 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Assignments.
Question No: 1 of 66
What data type should be used when we want to store any type of data? 
Options:
  1. int
  2. string
  3. double
  4. object
View Answer/Explanation:
d
Explanation:
All predefined and user-defined types inherit from the object type.

Question No: 2 of 66
What is the default value of the first enum member? 
Options:
  1. 1
  2. 0
View Answer/Explanation:
b
Explanation:
The default value for an enum is 0. If required we can change it to 1

Question No: 3 of 66
_______ is the term used to describe the transformation from Value Type to reference type (object). 
Options:
  1. Boxing
  2. UnBoxing
  3. Implicit Casting
  4. Explicit Casting
View Answer/Explanation:
a
Explanation:
Boxing refers to the conversion of Value type to an Object (Reference type). Unboxing means conversion of Object to Value type.

Question No: 4 of 66
What is the o/p of following program
class Program
{
	static void Main(string[ ] args)
	{
            int n; char chr;
            chr = (char)(65);
            Console.WriteLine(chr);
            chr = 'a';
            n = chr;
            Console.WriteLine(n);
	}
} 
Options:
  1. 65, a
  2. a, 65
  3. A, 97
  4. 65, A
  5. Compilation Error
View Answer/Explanation:
c
Explanation:
As per ASCII Code A=65 to Z=90 and a=97 to z=122 here casting is done.

Question No: 5 of 66
Which of the following are floating point datatypes 
Options:
  1. int
  2. long
  3. float
  4. decimal
View Answer/Explanation:
b c
Explanation:
Though decimal allows digits after decimal point, the number of digits are fixed unlike float and double where number of digits are not fixed.

Question No: 6 of 66
Structure is a _________ 
Options:
  1. Reference Type
  2. Value Type
View Answer/Explanation:
b
Explanation:
Structures are Value Types and Classes are Reference Types

Question No: 7 of 66
Which of the following are operators are supported in C#? 
Options:
  1. ++ and --
  2. XOR and NOT
  3. & and sizeof
  4. * and \
View Answer/Explanation:
a c
Explanation:
Division Operator = "/" & and sizeof are used in Unsafe Code blocks XOR & NOT are not valid operators in C#

Question No: 8 of 66
Which of the following is valid for iterating through the loop indefinitely. 
Options:
  1. while(true) { }
  2. while(false) { }
  3. do until(false) { }
  4. do until(true) { }
  5. while (1=1) { }
View Answer/Explanation:
a
Explanation:
do until is not a valid statement in C# while(1 = 1) is compilation error because condition must be logical expression for eg: while(1 == 1){ }

Question No: 9 of 66
Which of the following is valid about Optional Parameters? 
Options:
  1. Every optional parameter must specify a default value.
  2. Any parameter of a method can be optional provided it has a default value.
  3. If a given parameter has a default value all the subsequent parameters must be optional.
  4. Every method must have at least one parameter which is optional.
  5. An optional parameter need not have default value
View Answer/Explanation:
a c
Explanation:
Every optional parameter must specify a default value. if u are not passed any value from calling method automatically this defalut value will be hold the parameter.

Question No: 10 of 66
Which of the following is valid about params keyword. 
Options:
  1. A method can have any number of parameters with params keyword
  2. Only the last parameter of a method can be declared with params keyword
  3. Only array (of any type) parameters can have params
  4. if params parameter is present, method should not have any other parameter.
  5. If the first parameter of a method is declared with params keyword, such a method can be called without passing any argument
View Answer/Explanation:
b c e
Explanation:
1. Only Parameters which are of type array (of any data type) can be declared as params 2. If parameter is declared as params either a reference to the array can be passed as argument or 0 or more individual values can be passed to it. 3. Only one parameter of a method can be declared as params parameter. 4. It must be last parameter in the list of parameters for a given method. 5. If we have other parameters in the list they must be before the params parameter.

  1