







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A set of practice exam questions for cse 240, covering topics such as logic programming (prolog), scheme programming, and general programming concepts. It includes questions on recursion, higher-order functions, data structures, and exception handling in c++. The questions are designed to test understanding of fundamental principles and problem-solving skills in these areas. This resource is valuable for students preparing for exams in computer science courses, offering a comprehensive review of key concepts and techniques. It covers topics such as scheme code analysis, functional programming paradigms, and c++ inheritance.
Typology: Exams
1 / 13
This page cannot be seen from the preview
Don't miss anything!
is_dessert(cookie).is_dessert(ice_cream).is_dessert(pie).is_dessert(cheese- cake).is_fruit(strawberry).is_fruit(apple).is_fruit(peach).contains(cookie, chocolate_chips).contains(ice cream, cookie).contains(ice cream, strawberry).contains(ice cream, peach).contains(pie, apple).contains(pie, peach).contains(pie, strawberry).contains(cheesecake, strawberry). Which of the following rule can identify the list of desserts that contains apple?: apple_dessert(X) :- is_dessert(X), contains(X, apple).
(define foo (lambda (x) (if (= x 0) 1 (* x (foo (- x 1))) ))) What does this procedure do?: compute x!
They let you interact with a program after it has populated the environment to understand what is happening.
source item size number of items
int tail = 0; Which statement can read a name into the name field of the structure?: - scanf("%s", contactbook[tail].name);