For More Quiz Questions click here to download Global Quiz on Google PlayStore

NATIONAL OPEN UNIVERSITY OF NIGERIA

UNIVERSITY VILLAGE, PLOT 91, CASDASTRAL ZONE, NNAMDI AZIKIWE EXPRESS WAY, JABI, ABUJA.
FACULTY OF SCIENCES
APRIL 2019 EXAMINATION

COURSE CODE: CIT 351

COURSE CREDIT: 2

COURSE TITLE: C# PROGRAMMING

TIME ALLOWED:  2 Hours

INSTRUCTION: ANSWER QUESTION 1 AND ANY OTHER THREE (3) QUESTIONS;

MARKING GUIDE

 

QUESTION

 

1a. Enumerate and write on the three (3) common C# type systems (9 marks)

1b.Identify five (5) statements in the following source code and specify their corresponding roles: (10 marks)

 

Int sampleVariable;        

sampleVariable = 5;        

Method();             

SampleClass sampleObject =  new SampleClass();                                                                     

 sampleObject.ObjectMethod();

< //executing a “for” loop with an embedded “if” statement

                                                                                                                 

1c.Give a brief explanation of the following statements within the context of  C# Programming:

  1. C# is a multi-paradigm programming language.   (2 marks)
  2. Managed memory cannot be explicitly freed  (2 marks)

1d. State the role of ECMA international   (2 marks)

 [Total = 25 marks]

 

2a. Give the C# statement to convert the following object box to a value-type: (4 marks)

       object box = 48;

       int i = (int)box;

2b. Specify the condition for an unboxing conversion to a given value-type to succeed at run-time.  (3 marks)

2c. Memory address pointers in C# are used within unsafe blocks. Discuss (8 marks)

 [Total = 15 marks]

 

3a. Describe the standard syntax for declaring a variable in C#. (4 marks)

3b. Briefly explain the following in C#:

  1. bool   (4 marks)
  2. string  (4 marks)

3c. Highlight the reason why C# disallows the integer meaning ‘true or false’. (3 marks)

   [Total = 15 marks]

 

4a. Study the lines of code in the figure below and answer the questions that follow:

i. Identify the object within the source code.   (2 marks)

ii. Write the command line for compiling the identified object.   (6 marks)      

iii. Name two operators in the source code.   (4 marks)      

4b. A notable feature of C# is that there are no global functions. Explain.   (3 marks) 

    [Total = 15 marks]

 

5a. Write short notes on the following:

  1. ASP.NET Web Application   (3 marks)
  2. Empty Project      (3 marks)
  3. Windows Application  (3 marks)
  4. Class Library  (3 marks)

 

5b. Enumerate three (3) major tasks that can be performed in a C# project within the VisualStudio.NET setting.  (3 marks)

[Total = 15 marks]

 


For More Quiz Questions click here to download Global Quiz on Google PlayStore


Select NOUN Past Questions & Answers by Faculties

Sciences

National Open University of Nigeria (NOUN) Faculty of Sciences Past Questions and Answers.

Education

National Open University of Nigeria (NOUN) Faculty of Education Past Questions and Answers.

Arts & Social Sciences

National Open University of Nigeria (NOUN) Faculty of Arts and Social Sciences Past Questions and Answers.

Law

National Open University of Nigeria (NOUN) Faculty of Law Past Questions and Answers.

Management Sciences

National Open University of Nigeria (NOUN) Faculty of Management Sciences Past Questions and Answers.

Health Sciences

National Open University of Nigeria (NOUN) Faculty of Health Sciences Past Questions and Answers.

Agriculture Sciences

National Open University of Nigeria (NOUN) Faculty of Agricultural Sciences Past Questions and Answers.

Select Project Topics & Materials by Categories

Accounting

Universities, Polytechnic's and Colleges of Education Accounting Project Topics and Materials.

Biology

Universities, Polytechnic's and Colleges of Education Biology Project Topics and Materials.

Business Education

Universities, Polytechnic's and Colleges of Education Business Education Project Topics and Materials.

Chemistry

Universities, Polytechnic's and Colleges of Education Chemistry Project Topics and Materials.

Computer Science

Universities, Polytechnic's and Colleges of Education Computer Science Project Topics and Materials.

Criminology & Security

Universities, Polytechnic's and Colleges of Education Criminology & Security Project Topics and Materials.

Economics

Universities, Polytechnic's and Colleges of Education Economics Project Topics and Materials.

Education

Universities, Polytechnic's and Colleges of Education Education Project Topics and Materials.

English/Linguistic

Universities, Polytechnic's and Colleges of Education English/Linguistic Project Topics and Materials.

Entrepreneurship

Universities, Polytechnic's and Colleges of Education Entrepreneurship Project Topics and Materials.

Environmental Science

Universities, Polytechnic's and Colleges of Education Environmental Science Project Topics and Materials.

Law

Universities, Polytechnic's and Colleges of Education Law Project Topics and Materials.

Marketing

Universities, Polytechnic's and Colleges of Education Marketing Project Topics and Materials.

Physics

Universities, Polytechnic's and Colleges of Education Physics Project Topics and Materials.

Political Science

Universities, Polytechnic's and Colleges of Education Political Science Project Topics and Materials.

Public Administration

Universities, Polytechnic's and Colleges of Education Public Administration Project Topics and Materials.

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...

Facebook posts