View Count: 0
Duration: 35 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 Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 11
Pointer variable is used to hold the _________ of the variable 
Options:
  1. Value
  2. Address
  3. Value and Address
  4. Name of the variable
View Answer/Explanation:
b
Explanation:

Question No: 2 of 11
Which among the given operators is referred to as ‘address of’ operator? 
Options:
  1. *
  2. ^
  3. &
  4. ~
View Answer/Explanation:
c
Explanation:
The ‘&’ is a unary operator that returns the memory address of its operand. For example, int* ip; int num = 10; ip = # puts into ip the memory address of the variable num. This address is the location of the variable in the computer’s internal memory.

Question No: 3 of 11
Unsafe code in C# can be written in the flowing block: 
Options:
  1. unsafe int ThisMethod(){}
  2. unsafe: int ThisMethod() { }
  3. int ThisMethod():unsafe { }
  4. All of the Above
View Answer/Explanation:
a
Explanation:

Question No: 4 of 11
What is the output of the below program?
 
static void Main(string[] args)  
    {  
         int ab = 32;  
         int* p = &ab;  
         Console.WriteLine("value of ab is {0}", *p);  
         Console.ReadLine();              
    } 
Options:
  1. Compiletime error
  2. Runtime error
  3. 32
  4. None
View Answer/Explanation:
c
Explanation:

Question No: 5 of 11
Which of the following statement is correct about unsafe mode? 
Options:
  1. It increase the performance of the Program.
  2. We use fixed buffers inside an unsafe context. With a fixed buffer, you can write and read raw memory without any of the managed overhead.
  3. It provides a way to interface with memory.
  4. All of the above.
View Answer/Explanation:
d
Explanation:

Question No: 6 of 11
Which of the following  are Disadvantages of  unsafe mode? 
Options:
  1. It increase the responsibility of the programmer to check for security issues and extra developer care is paramount to averting potential errors or security risks.
  2. It bypasses security.
  3. It also avoids type checking, that can generate errors sometimes.
  4. All the above.
View Answer/Explanation:
d
Explanation:

Question No: 7 of 11
Pointer types are inherited from_______? 
Options:
  1. Object
  2. String
  3. Struct
  4. None of the above
View Answer/Explanation:
d
Explanation:

Question No: 8 of 11
A pointer is nothing but a variable_____? 
Options:
  1. Variable
  2. Datatype
  3. Class
  4. Struct
View Answer/Explanation:
a
Explanation:

Question No: 9 of 11
What is the o/p of the below program
 int x = 100; 
int *ptr = & x;
Console.WriteLine((int)ptr) 
Options:
  1. Prints value only.
  2. Prints memory address only.
  3. Compiletime error
  4. Runtime error
View Answer/Explanation:
b
Explanation:

Question No: 10 of 11
C# supports both implicit and explicit pointer conversions within un-safe context? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:

  1