You are on page 1of 10
Special Resit Program for 2023/2024 Academic Session Course Code: CMP 411 Course Title: S i credit: 3 CU ganization of programming languages Times Instruction: Answer 4 Questions es Date: 17/01/2024 Question 1 A. write a code segment for each the selection control statements. Lif 9 marks 2.Ihelse... 3. if.elif..else... { 4. Switch... B. Mention 4 Language Paradigms With At Least One Programming Language Example For Each Paradigm 6 marks Question 2 A. Give 5 reasons for studying concepts of progeming nguages 5 Marks B. list two trade-offs in language design. 2 marks C. list 4 criteria for language evaluation and conipatison 2 marks D. list three differences between compilation and interpretation 6 marks Question 3 ‘A. write a code segment for each the control statements 9 marks a. For, b. While... ds B. Outline 4 attributes of a good language: 6 marks ~Auestion 4 . Briefly explain the concept of binding? 3 marks B, explains the types of binding we have? 4 marks C. state the different time at which binding is performed? 6 marks _/ Question 5 A. explain the concept of scope and lifetime of'a variable?” 4 marks B, staie and explain types of control structures Gotine control structures? “6 marks* C explain the difference between semantics and syntax errors with a code structure to demonstrate each S marks / Question 6 ; A. Ina sentence, distinguished between procedme and function? 3anarks B briefly explain formal parametres and actual parametres? 4 marks CC how do we implement a programming language? 4 marks D_ what is the scope and lifetime of a variable 4 marks. \ 2022/2023 Academic Session First Semester Examination Course Code: CMP 411 Credit: 3 Course Title: Organization of programming languages. Time Allowed: Instruction: Answer any four (4) questions Date: 25/05/2023 2.5 Hours fouestion 1 a) Write a code segment fo if . Ie.else. i. ifelseif.else... Switch | 1b) Itemize 4 Language Paradigms with at least one programming language example for each paradigm 6 marks Question 2 ini tela a) Give proper explanation the language evaluation and comparison criteria below i. Expressivity Modularity Portability heme soars ‘b) List three (3) differences between compilation and interpretation S marks sucstion3 Pit 7 ~ a Expiain the concept of scope and lifetime of a variabie ~ marks bj List two trade-offs in language design, + 2 marks: cc) How does data abstraction differ from encapsulation 3 marks 2) Outline 4 attributes of a good language. 6 marks vo Question 4 a) Briefly explain the concept of binding 5 marks b) Explains the types of binding 4marks ©) State the different time at which binding is performed 4marks 4) Ina sentence, distinguished between procedure and function 2 marks fission 5 4) ‘State and explain types of control structures 6 marks 2) Give 5 reasons for studying programming languages 3 Marks 45, Explain the difference between semantics and syntax errors with a code structure to demonstrate each , 4marks fuestion 6 4) Briefly explain formal parameters and actual parameters 4marks b) What is the scope and lifetime of a variable + 4 marks ©) State and explain 3 methods for implementing programming language 6 marks ach of the selection/control structures below 9 marks “Faculty of Computing irtment of Computer Science ‘Course Code: CMP 421 ta Communication and Networking the generator 1101? ASuestion 1 a) Find the Cyelic Redundancy Check (CRC) for 100100 with - a ~ (7 Marks) smission? (4 Marks) ) Explain the differences between serial transmission and parallel tran ta Communications? (4 Marks) c) List and explain four (4) requirements of Dat Question 2 a) Explain with examples the following: i. Simplex channel ‘Half-duplex channel . Full-duplex channel (6 Marks) 'b) Why would the token - ring protocol be inefficient if a LAN had a very large perimeter? (G Marks) ©) State and briefly explain four (4) factors affecting network efficiency 4 (4 Marks) a ~ Muestion 3 - = a) Find the checksum of this data unit 10013 00)L1 1000190010010910000100. If aan itis cor, the received data is acceptéd; otherwise discarded. (7 Marks) (4 Marks) list four (4) network topologies (4 Marks) b) List and explain the 2 types of errors. ) With the aid of well labeled diagrams, with their various Question 4 a) Drawa table and show the public classes of IP addresses, octets and the range of value for first bytes. (7 Marks) (G Marks) (5 Marks) b) List 3 Error Detection Techniques ©) Mention the Seven layers of the OSI mode and number them accordingly Question 5 a) State the differences between an IPv4 and IPV6 using the following criteria; Address Field ‘Address Encryption (4 Marks) et Address size b) Complete the table below; Binary Decimal CIDR 0 224 128 125 192 126 224 RT 240 /28 248 29 252 30 | (7 Marks) c) State the rules guiding IP addressing. (4 marks) Question 6 a) List the 3 three categories of networks and briefly explain their purposes b) List and explain the types of transmission ¢) State the directional capabilities for data exchange (6 Marks) (6 Marks) (3 Marks) ise. Computer Selence First Semester Examination, 2022/2023 Session COURSE CODE: CMP 431 CREDIT: 02 DATE: 20/08/2023 COURSE TITLE: Artificial Intelligence DURATION: 2 HOURS Instructions: ‘te mver any three (03) questions only, write your Matric Number clearly. Question 1 2) Define Artificial intelligence 2 marks Alan Tring proposed satisfactory operational test of intelligence, state and discuss this est 4 5 marks c) State? advantages and 2 disadvantages of Artificial Intelligence over Natural Intelligence . 4 marks 5 marks 4) Define expert system and state three early application of expert system ¢) _Listand discuss 2 metrics for measuring al Question 2 a) What is an agent? 'b) Discuss the following agent programs iL Simple reflex agents ii. Model based reflex agents, Wi. Goal based agents iv. Utility base agents VY. — Leaming agents —— — Questions ‘2) State and discuss basic components of problem 1b) Write short note on the following uninformed search strategies i. Breadth-first search Depth-first search || Depth-limited search iv. Iterative deepening search v. Bidirectional search gorithm performance in problem solving. 4 marks 5 marks 15 marks ‘Smarks 15 marks Question 4 - Logical operator (.e, NOT, AND, OR, XOR, ete) are the building blocks of any computational device, Logial 5 functions return only two possible values, true or fase, based onthe truth or false values of their arguments, For example, operator AND returns true only when al its arguments are true, otherwise (if any of the arguments is falee) it returns false, If we denote truth by 1 and fase by 0, then logical function AND can be represented by the following table: Xi oO 1 0 x 0 0 1 Ht Xia % 0 0 0 1 ‘This function can be implemented by a single-unit with two inputs: If the weights are w1 = 1 and w2= 1 and the activation function is F(y) = {1 ify 2 0 0r 0 otherwise} a) Test how the neural AND function works 2marks i le unit in order to 5) ‘Suagesthow to change citer the weighs o the activation funtion ofthis sin implement the logical OR function, ‘marks x1 0 1 £ i x2 0 o 1 T x10R@ [0 1 1 Nea eay Question 5 w 2 ’ 8 #) Consider the neural network above. Suppo: vy are WI = 2, w2=-4,w3 = 1 sed thatthe weights corresponding tothe three input values ‘And the activation function is given as FQ) = (1 ify 20 or 0 otherwise) Calculate what will be the output value y of the network: {or each of the following input patterns. 12 MARKS ~~ fips x 1 x o % 0 ‘Suppose that a Bank decided to deploy a new aystem for assessing loan worthiness ofits customers. “The new system is using a feed-forward neural network with a supervised learning algorithm. Suggest in a form of essay what should the bank have before the system ean be used? Discuss problems 8 MARKS associated with this requirement. _-B.Se (Computer Science: —— “COURSE TODE: CMP 441 COURSE TITLE: Computer and Arcl DATE: 11/05/2023 hitecture and O| and IT) First Semester Examination, 2022/2023 Session ~) GREDIT: DURATION: 2H erating System Instructions: 1. Answer Four (03) questions only. 2. Write your Matric Number clearly. 3. Present your work sequentially and neatly. <2) Whatis the relationship that exists between the fo} Priority and SIF S and RR % 4 lowing p b. The arrival times and burst times for a set of 6} I Process ID Arrival Tim! [ Po 4 I Py 3 Pr. - de . P34 ee Pye L Pre 1% If FCFS scheduling is followed and there is 1 unit.o calculate: i. — ‘The efficiency of the algorithm ‘The average turnaround time , ‘The average waiting time , ¥Q2a. Succinctly describe the concept of RAG in des _ Recessary conditions for deadlock to occur, b. Consider the following snapshot of a system. alilock. State and briefly explain the 4 Process [ A = E E Mal ABC AB Po: 010 75 Pie 20:0 3.24 \ Pa 302. 90 Py 211 22 Pa 002° 43 Use banker’s algorithm to determine: Sao, ii, The need matrix ~~ Is the system in safe state? If yes find the safe| C-TEP_ requests (1, 0, 2), determine if it can be eral Q3.A. list and discuss the problems associated with co > paging? B. briefly explain the following terms a. demand paging b. thrashing * ¢. page fault, C. consider the followin, with 4 fame of memory ~_listed below. ig number of the following rel show how page replacement 70120304230321201701 1. First in first out (ff%) IL Least recently used ML ~ Optimal pagé replacement “Aa. Define the simplest ste, ~ Describe the Principle of Locality of reference givi i : nee givin, ¢. Describe Bus Arbitration and its two (2) machen Sa-Define the Constituents of memory hierarchy. sta of haat level for access and use) ot instruction sets, instructions are ¥ £aler foy-as well ag rayon Y five (5) of each class stn b. Within a variety ax - Cperands the; Describe an ited above? 4 isequence. Ps involved in executing a col Ing how data at the lowest level Way_and-manher-in whieh ted immediai ference string’ fll oceur loaded Ona computer * S efexamples ofits. two forms? is by the CPU? eS. jowed ah ile bas of tie inimber of j W-opetands-are-eddressed:—— ae A. . Gwe FEDERAL UNIVERSITY, DUTSIN-MA Faculty of Computing Department of Computer Science p.M.B. 5001, Dutsin-Ma, Katsina State, Nigeria: First Semester Examination for 2022/2023 ‘Academic Session CREDI 02 NEERING DATE: 18" May, 2023. 24 Question One. a Giving reasons for your answer based on the type of system being developed, suggest the most appropriate tenere software process model that might be used as a basis fOr managing the development of the following systems: i. Assystem to control anti-lock braking in a car 3 Marks ii virtual reality system to support software maintenance 3 Marks 3 Marks ‘Avuniversity accounting system that replaces an existing system Wi ANiwerachve travel planning system that helps users plan journeys with the lowest environmental impact 3. Marks tb. Suapest four reasons why the productivity fate of programmers working a pair might PEN than half that of two programmers working individually. 4 Marks ee utes thie important tribute tat all profesional software should have? Supgest any hres other attributes that may sometimes be significant. Question Two. ‘When would you recommend against the use of an ale method for develonig = software system?5Marks ss arn pales dstinescs box veen developingrhe use Teeirements an ‘developing —— ~~“ cem requirements inthe requirements engineering process ‘SMarks eee er best Software Process Model? If there is, which one isthe best? Discuss. SMarks Brien explain the four software process activities 5 Marks * Question Three. a State 4 Differences between the Funetonal ané Non-Funetional Requirements? 5 Marks f Under interface testing, state Interface types and explain each 4 Marks & Explain Software prototyping and State any tree (1) ofits benef 6 Marks S._ Enblain Software Inspestion and enumerates any thee @) of ts advantages 5 Marks fvestion Four Outline the fou (4 strategies employed when caring out legsty system astessmen? $ Marks {tis important to assess legacy systems from two (2) pespestes business value and ab eet etem ual. Identify fur (4) emerging legacy system assessment parameter and their implication to continued system usage? ‘8 Marks {f. Differentiate black box testing from white box testing? 4 Marks Question Five an simple terms, define Lehman's laws of program evolution dynamis? 16 Marks b, Define: i Corrective maintenance 1 Marks ‘Adaptive maintenance 1 Marks Perfeetive maintenance 1 Marks v. Emergency maintenance 1 Marks cmPasi. 2023 Good Luck "3922/2023 Second Semester Examination Course Title: Computer Graphics and Animation ‘Course Code: Date: 23" May, 2023 Time: 2.5 Credit: 03 Tastruction: Answer 4 questions Guostion 1 — . = : a) What do you understand by the term compuite? graphics? 3 marks b) Enumerate and briefly explain five (5) applications of computer graphics 5 marks c) Compare and contrast Interactive and Passive computer graphics 7 marks components of a th the aid of diagram, discuss ess0r. : escribe the working of cathode Ray Tube (CRT) ¥ explain five (5) componeni= of Cathode Ray Tube Question 3 2) Clearly differentiate between Ran b) State five (5) advantages of tnkjet pri and Raster Scan Display S marks 13, 5 marks S marks ©) Cosnpare and contast impact and non-impact printers Leestion 4 i plain five (5) input components that are y used in computer graphics \ 5 marks b) Calculate the value of intermediate points and slope of a line with starting (0,0) and ending point (8, 16}. 40 marks ratiove between Digital Differential Analyzer (DDA) Algorithm and Bresenham’s Line Algorithm. 2 os Gusti by) If line is draw from (2, 3) 0 (6, 15) With use of DDA. How many points vill needed to generate such line? Teer Question 6 ; | a) Explain 2D transformations with its basic types 10 marks ne.denwing lgorithm... S marks—————»— +b) Outline five (5) properties of e

You might also like