0% found this document useful (0 votes)
126 views

CSC 419 Past Questions

Uploaded by

Luz E Villalongo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
126 views

CSC 419 Past Questions

Uploaded by

Luz E Villalongo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
ADEKUNLE AJASIN UNIVERSITY, AKUNGBA AKOKO. FACULTY OF SCIENCE DEPARTMENT OF COMPUTER SCIENCE B.Se DEGREE - SECOND SEMESTER EXAMINATION FOR 2017/2018 ACADEMIC SESSION: 2017/2018 : COURSE TITLE: ORGANISATION OF PRORAMMING LANGUAGES COURSE CODE: csc 419 COURSE UNIT: 3 ‘TIME ALLOWED: 2t1rs. INSTRUCTIOI inswer any four (4) questions. EXAMINATION QUESTIONS . Question 1 8. What is the difference between statically typed Use code samples to explain the structure of ea v Question 2 & Is Javaa Compiled or an Interpreted programming language? Explain. (10 marks) ‘Using the table provided below, fill in Yes or No in the boxes provided in the table depending on Nhether oF not the programming language support an OOP feature. (10 marks) ‘OOP Feature Ruby [Java | GF All predefined types are OOjecis inheritance [Polymorphisms / Dynansie Binding [All operations are messages to Objects fethod Overloading [Garbage Collection Y Question 3 a, Why isthe retum statement required in a function body? (10 marks) '. Explain user defined function with an example. (10 marks) Question 4 2. What is reflection and why is it useful? (10 marks) . Rewrite the following pseudocode segment using a loop structure using the following programming Janguages. a) C, and b) Java. (10 marks) Question 5 a. Define the followin variables. (10 marks) ; Using code samples in C+, explain the two most common methods of passing parameters in C++ and Java. (10 marks) Y Question 6 &. Mention important differences between static and dynamic binding (10 marks) Give examples, using Java syntax, of statie and dynamic binding. (10 marks) ‘and dynamically typed languages? (10 marks) rly and late binding in C++, (10 marks) Python | Cr | Perl [Visual Base] i) Actual parameters. fi) Formal parameters i Global variables iv) Local ADEKUNLE AJASIN UNIVERSITY, AKUNGBA AKOKO FACULTY OF SCIENCE DEPARTMENT OF COMPUTER SCIENCE B.Se DEGREE - fUJOKT] SEMESTER EXAMINATION FOR 2017/2018 ACADEAIC ‘SESSION 2018/2019 ~ COURSE TITLE: ORGANISATION OF PRORAMMING LANGUAG! COURSE CODE: csc 419 TIME ALLOWED: 2Hrs. INSTRUCTION: EXAMINATION QUESTIONS Question LY Define the following: i) Actual parameters. ii) Formal parameters. ii) Gl ‘Local variables. (10 marks) « Using code samples, explain the two most eoman Java, (10 marks) wiables inl) b n methods of passing parameters in C++ or Question 2 8. What criteria would be appropriate to judge a programming language? List and explain, (10 marks) bb. List and explain six a Question 3 butes of a good programming language, (10 marks) Mention important differences between static and dynamie binding, (10 marks) b. Give examples, using Java syntax, of static and dynamic binding. (10 marks) Question 4 a, What is the difference between statically typed and dynamically typed languages? (10 marks) b. Use code samples ¢o explain the structure of early and late binding in C+. (10 marks) uestion § 2. Is Java a Compiled or an Interpreted programming language? Explain. (10 marks) . Using the table provided below, tll in Yes or No in the boxes provided in the table depending fon whether or not the programming language support an OOP feature, (10 marks) ‘OOP feature CH All predefined pes are Ob]eae inher Ruby ava Python Ge Pert Visual Basie Polymorphism / Dynamic Binding [All operations are messages to Objects ezhod Overloading : [Garbage Collection Question a.Mention and explain C++ object-oriented programming features, (10 marks) b. Explain the following programming language expressions with examples using C+¥: (10 marks) i) Static binding, i) Dynamie scoping, r 17e4fUEOS ADEKUNLE AJASIN,UNIVDRSITY, AKUNGBA-AKOKO INSTITUTE OF WAR \PpMI5 PROGRAMMES SPARTMEN'T MPUTER SCIENCE Skmestin SS pNTsOW POR 2019/2020 ACADEMIC SESSION cng Couns ONT 5 COURSE CODE: CSENY COURSE STATUS: Core 0/03/2021 anisibion af Phoysarnaung, —F 1 ALLOWED Vequertion 48. Waite bvlef history of programming languoges (LOmks) Sate the expected features /quulitios/characteristles ofa programming language (10mks) Discuss the concept of Binaing and Scope of alan aye structure (20mks) \ question? a Dh ish between: (i) Syntax and Semantis (i) Machine Language and Low-Level Language (Smks) 5. Waite a preg any to galoulate the sum of sauares OC +¥4) and sum of roots (VX + YY) of two variables Nana Y using (il i Python (omks) eeuestiona State the data types ta 1 Python cH (Smks) {> tiusteatively distinguish between the 0 Statements Structure in Ci and that of Python (LomKs) Questions m4 Using C# and Python, write a program that computes for pay_skolfoe as my_salary — ‘monthly_expenses iff the value of my_salary is greater than monthly_expense. (sinks) Write a Java program that accepts value fora variable, x, detects its even and prime status. (Smks) emonstrate the use of int,parse in Java as oppose to Convert.To in Cit (smks) Questions \Write a python-ased simple graphieat program (0mks) Wate 2 python program that captures values for three (3) varlables: x, y, 2 and computes their product (Simks} \Deestiong discus the peculiarity of any thiee (3) programming languages, their Inventors and the purpose and usefulness of Invention, (20mks) Distinguish between objectoriented programming tanguage paradigm and event-driven programming paradigan (Saks) Sao cnetiTyneo inane eeesncema erate 1

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy