Computer programming 2 past question, Exams of Computer Science

Course code: CS 202 course title: Computer programming 2 ( web design using ASP. NET University: Federal college of education Pankshin Affiliated to University of Jos

Typology: Exams

2021/2022

Uploaded on 09/02/2025

philip-wisdom-bwehmasi
philip-wisdom-bwehmasi 🇳🇬

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf2

Partial preview of the text

Download Computer programming 2 past question and more Exams Computer Science in PDF only on Docsity!

FEDERAL COLLEGE OF EDUCATION PANKSHIN, SCHOOL OF SCIENCES COMPUTER DEPARTMENT BSC ED SECOND SEMESTER EXAMINATION 2023/2024 SESSION COURSE TITLE: COMPUTER PROGRAMMING-II (WEB PROGRAMMING) COURSE CODE: CS 202 CREDIT LOAD: 03 _ . INSTRUCTIONS: ANSWER ANY FOUR() QUESTIONS IN 2%-HOURS "SP_NET Core consists of a platform for processing HTTP requests, a series of principal tramewerss for creating applications, with the aid of a diagram describe the structure of ASP.NET Core. (7% Marks) ay b) What is MVC? Write a Powershell command to create an MVC template for ASP.NET SDK 3.1 edition ina folder name “Revistration200Level” (7'4 Marks) nQ2. a) Distinguish between Razor pages and Blazor in relation to ASP.NET Core and C#? (§ Marks) b) Given a domain mode! NewYearParty200L.Models,GuestResponse with the properties Name {string}, Phone fint), Email (string) and willAttend (bool?), create a webpage using teal boxes and select HTML elements whore necessary, that can capture the guest model birding framework. Hint: Asumming, the ) Marks) response fram the webpage Using GuestRespanse Object already existed only the webpage is needed. (1 What do you understand by an Endpoint in ASP.NET Core? (5 Marks) qQ3. a) b) Implement an endpoint that can check system real-time and send the message “GOOD MORNING 200 LEVEL" when the time is below 12-hours and “GOOD AFTERNOON 200 LEVEL" when the time is equal or greater ihan 12-hour, pass the message as a view- model to the webpage hMyView" to the browser. Hint: Assume the webpage MyView already existed, (10 Marks) aa a) Write the powershell cammand ta display available SDKs In a system installation? (8 Marks) b) b) A} b) onse> ‘ 200L,Models.GuestResp i an lEnumerablecNewYearParly : pide dants that are willing to honor your lazor and display the collection object with list of about 100 respon ollection invitation, create a webpage that can iterate the list of guest with B ee ' 1 int: on guest information with a HTML table element, Hint: Assuming GuestResp abject with similar properties as in 2b above already existed. (10 Marks) What do you understand by the term Routes in ASP.NET Core? (5 Marks) Create a thank you Webpage that will receive a NewYearPanty200L.Madels.Guestresponse object froma controllers endpoint, and display dynamic messages to the guest relative to the value of the WillAttend property when fs either True or False, then display the guest name followed by “THANK YOU FOR HONORING OUR INVITATION” when the value is true and “IS UNFORTUNATE YOU WONT BE ATTENDING OUR PARTY" when the value Is false using the HTML ‘p' or h1 elements. Hint: Assuming the GuestResponse abject already existed. , (10 Ma rks) Create an ‘a’ HTML elament with text “Click here” to link toa URL of your choice (5 Marks) Design the GuestResponse class with the Properties Name Phone Email and WillAttend in C#. then create i sl ae ne . HEN Create a static Repository class WILD Static Properties that will P the list of Guestresponse objects in its collections for future retrieval ™ (0 Ma rks)