CSE240 FINAL SUMMER EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED LATEST UPDATE
6 views 0 purchase
Course
CSE240
Institution
CSE240
CSE240 FINAL SUMMER EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED LATEST UPDATE
Features of the functional paradigm includes
expresses computations in terms of mathematical functions & simpler semantics
Compilation of a program is the translation of all statements of a program into...
cse240 final summer exam questions and answers wit
Written for
CSE240
All documents for this subject (20)
Seller
Follow
AcademicSuperScores
Reviews received
Content preview
CSE240 FINAL SUMMER EXAM QUESTIONS AND
ANSWERS WITH COMPLETE SOLUTIONS VERIFIED
LATEST UPDATE
Features of the functional paradigm includes
expresses computations in terms of mathematical functions & simpler semantics
Compilation of a program is the translation of all statements of a program into
assembly language before any statement is executed.
True
A programming language can belong to multiple paradigms
True
Features of the imperative or procedural paradigm includes
conditional statements & manipulation of named data (variables)
What is the output of the following code
#include <stdio.h>
void main() {
char a[10][5] = {"hi", "hello", "fellows"};
printf("%d", sizeof(a[2]));
}
5
What is printed by the following program?
int main() {
fun(5);
}
54321@12345
Assume that a string is declared as
char str[ ] = "heLLo";
What is the return value of sizeof(str) ?
6
What is printed by this program?
#include <iostream>
using namespace std;
class A {
public:
void m() {cout << "AAA";}
};
class B: public A {
public:
virtual void m() {cout << "BBB";}
};
class C: public B {
, public:
void m() {cout << "CCC";}
};
int main() {
B *b <ask b> = new C;
b->m();
return 0;
}
CCC
What is printed by the following program?
#include <iostream>
using namespace std;
int i = 5;
class A {
public:
A() {i=10;}
~A() {i=20;}
};
int foo() {
i=30;
A a;
return 0;
}
int main() {
foo();
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller AcademicSuperScores. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.