NEB Class 12 Science Visual Programming Question Paper 2082 (Set D)
Group 'A'
Rewrite the correct option of each question in your answer sheet.
What does C# stand for in C#.NET ?
'Implicit Conversion' follows the order of conversion as per compatibility of data type as :
What will be the output of following program ?
for (int i = 0; i<5; i++){
if (i == 2)
continue;
console.Write (i+ " ");
}
Which of the following represents a two dimensional array in C# ?
When does a structure variable get destroyed ?
Which of the following would be best implemented using a struct instead of a class in C# ?
In C#, structure is used to define :
Among the given pointer which of the following cannot be incremented ?
In C#, which method is used to execute an SQL INSERT query to add a new record to a database ?
Group 'B'
Short Answer Questions
What do you mean by operator in C# ? Explain any two types with example. [1+4]
In C# application, you need to manage test scores for 30 students. How would you initialize array with scores, update the score of 10th student, and then display the score of all students.
Or
Write a C# program to add two matrices and display the sum.
Compare one-dimensional array and two-dimensional array in C#.
Or
Explain IndexOf( ) and compare any two string functions with examples in C#. [2+3]
Define structure in C#. Write a C# program to define a structure called a 'Book' that contains the following field : Title, Author and Price. Create an instance of the structure, assign values to the fields, and display them. [1+4]
Explain the advantages of using pointer in C#. In which scenario they should be used ? [2+3]
Group 'C'
Long Answer Questions
Explain different types of conditional control statement in C# with their syntax, functionality and provide real world example for each.
What are the steps required to establish a connection between a C# program and a database ? Explain with example.
Or
Explain any four methods in array class with program in C#.