PROMOTE MY BLOG: JUST CLICK BELOW BUTTON

Search Any Paper On This Blog

Sunday, September 18, 2011

NTS Sample Paper Desktop Application


Sample Paper Desktop Application

Instructions

Total number of Sections = 01
Total number of Questions = 05
Time Allowed = 06 minutes


The Sample Paper is totally MCQ Based, consisting of Question statements and four/five (i.e. A-D/E) Answer choices. You have to select the correct answer choice.

Instructions about Answer Sheet + Right Answer Keys are at the end of Exercise.


Note: This sample paper does not include quantitatively the same number of questions as there would be in actual paper. This is merely meant to provide conceptual guidance to the users or prospective candidates.
DESKTOP APPLICATION

1.     What will be the value of  “ a “?
 
int a = 3;
int b = 5;
a += (a < b)? (1):(-a);
 
A.           0
B.           5
C.           3
D.           4
E.           6

2.     What is the top .Net class that everything is derived from?

A.           System
B.           System.Net
C.           System.Object
D.           Microsoft.Net
E.           System.Assembly

3.     What will be the value of “ a ”?

int a = 0;
for (int i = 0; i <= (5 - i); )
  {
      a = i;
        ++i;
  }

A.           4
B.           2
C.           Error
D.           Infinite Loop

4.     Which of the following statement is true about function overriding?

A.           Overriding means that functions having same name and return type but different Parameters.
B.           Overriding means that out of several functions, the 'right' one is selected
at run-time depending on the dynamic type of an object.
C.           Overriding means that functions have same parameters and different return types
D.           None of the above


5.     What concept does the below sample code demonstrate?

internal class Disc {}
internal class HardDisk
{
private Disc[ ] m_Disc = new Disc[2];
public bool Read()
{
//some code
}
public bool Write()
{
//some code
}

}
public class Computer
{
private HardDisk m_HardDisk = new HardDisk();
public void Start()
{
//put in keys etc..
if (m_ HardDisk.Read())
{
//some more code
}
}
}


A.           Delegation
B.           Polymorphism
C.           Combination
D.           Composition
E.           Inheritance

Answer Keys

Q #.
Right Choice
1
D
2
C
3
B
4
B
5
D


By : ADEEL ABBAS 
www.allvupastpapers.blogspot.com 
AdeelAbbasbk@gmail.com

No comments:

Post a Comment

PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE

Note: Only a member of this blog may post a comment.