How to login to NOUN Elearn Portal
You can now use you matric number to login as your username and password in a lowercase.
https://elearn.nouedu2.net/login/
Note that you are to change your passw...
COURSE CODE: CIT 351
COURSE TITLE: C# Programming
DURATION: 2½ Hours
INSTRUCTIONS: Answer any Four (4) Questions
1a. State the general syntax for declaring a variable in C# 4 marks
1b. State the main role of each part of the syntax 4 marks
1c. Give the guiding principle for accomplishing the following:
1d. Enumerate 4 most commonly used data types in C# programming 3 ½ marks
[Total = 17 ½ marks]
2a. Describe how memory leaks are handled in C# programming? 5 ½ marks
2b. Give a brief explanation of any 3 template types accessible in Visual C# projects 12 marks
[Total = 17 ½ marks]
3a What is the main significance of VisualStudio.NET with respect to having an Integrated Development Environment? 2 ½ marks
3b List 3 regular programming tasks carried out in VisualStudio.NET 6 marks
3c. What is the implication of using the Microsoft’s .NET Framework libraries when naming objects in C#? 4 marks
3d Spot 5 statements in the following source code specifying their corresponding roles.
IntsampleVariable;
sampleVariable = 5;
Method();
SampleClasssampleObject = newSampleClass();
sampleObject.ObjectMethod();
<//executing a “for” loop with an embedded “if” statement 5 marks
[Total = 17 ½ marks]
4a Give any four (4) reasons why statements are considered to be critical for C# program execution.
4b With the aid of two (2) common examples, explain why C# is said to be a case-sensitive programming language. 4 marks
4c Write down the corresponding C# alias of the following C# Primitive types:
9 ½ marks
[Total = 17 ½ marks]
5. Study the figure provided and answer the subsequent questions:
Using System;
public class Fib{
Decimal current;
Decimal last;
public Fib(){
current = 1;
last = 0;
}
private Fib(Decimal last, Decimal secondToLast){
current = last+secondToLast;
this.last = last;
}
public Fib GetNext(){
return new FiB(current.last);
}
public Decimal Value{
get{return current;}
}
}
5a. Identify and name the object within the source code. 3 marks
5b. Write the command line for compiling this object. 10 ½ marks
5c. Name any 2 operators in this source code. 4 marks
[Total = 17 ½ marks]
6a. Write down the source code for compiling a file named Economy.cs on the hard drive
of a computer. 6 ½ marks
6b. Provide the appropriate comment for the following:
6c. What is the implication of declaring a Method as static? 2 marks
[Total = 17 ½ marks]
Select NOUN Past Questions & Answers by Faculties
National Open University of Nigeria (NOUN) Faculty of Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Education Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Arts and Social Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Law Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Management Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Health Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Agricultural Sciences Past Questions and Answers.
Select Project Topics & Materials by Categories
Universities, Polytechnic's and Colleges of Education Accounting Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Biology Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Business Education Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Chemistry Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Computer Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Criminology & Security Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Economics Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Education Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education English/Linguistic Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Entrepreneurship Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Environmental Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Law Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Marketing Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Physics Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Political Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Public Administration Project Topics and Materials.
You can now use you matric number to login as your username and password in a lowercase.
https://elearn.nouedu2.net/login/
Note that you are to change your passw...
The Flemish Ministry of Education and Training awards scholarships to highly talented international students who want to study a master's programme at a Flemish university, a school of arts or ...
Universities of the Coimbra Group offer short-term visits (generally 1 to maximum 3 months) to young African researchers from higher education institutions from Sub-Saharan Africa. The main aim of ...