Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
problem1 suppose you are given a description of a map in terms of the relation from to from to a b means that one can
problem1 write a prolog program which defines the predicate fib i x where i is a positive integer and x is the i-
problemwrite a prolog program which checks if a list contains another as a sublist the program returns yes for queries
problem1 comment the following statement in logic programming a program used to generate a result can be used to check
problem1 write a recursive algorithm to do the marking of all reachable heap objects2 write a short report on possible
problem1 in eiffel each object has a feature called copy which is used for assignment to the object for example a copyb
problem1 justify through examples the following statement on pascal since subtypes are defined by the language as new
problem1 define monomeric and polymorphic type systems2 compare genericity in ada or c and in ml which can be defined
problem1 discuss the truth or falsity of the following statement and discuss its relevance a program can be unsafe and
problem1 write a short report illustrating how array manipulation facilities are richer in ada than in pascal or c2
problem1 ada supports discriminated unions through variant records write a short report describing how ada does this
problem1 use protected types in ada to implement semaphores2 define an ada protected type to implement a shared
problemsome computers provide an indivisible machine-instruction test and set ts that can be used for synchronization
problem1 explain why aliasing makes the effect of implementing parameter passing by reference and by value result
problem1 show how pointers to procedures or functions can be used in ada to pass procedures or functions as parameters2
problemsometimes inheritance is used improperly for example consider defining an automobile class we have an existing
problemimplement a c class employee that supports a virtual method print which prints the name and age of an employee
problem1 write a short paper on c macros comparing them with routines what are the binding policies adopted by the
problem1 check a guage of your choice eg pascal or c to see if it allows expressions to be passed by reference specify
problem1 referring to the previous exercise assume that own variables are not automatically initialized to certain
problem1 define an algorithm that performs the linkage step for c22 write the sequence of simplesem instructions
problem1 describe the two ways named vs positional provided by ada to associate actual and formal parameters2 discuss
problem1 c also allows functions to accept more parameters than are specified in the function definition why and how is
problem1 in general it is not possible to check statically that the rvalue of an unitialized variable will not be used
problemcompare the implementation of ada generics versus c templates does the source of a c template function need to