100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE240 FINAL SUMMER EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED LATEST UPDATE $10.99   Add to cart

Exam (elaborations)

CSE240 FINAL SUMMER EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED LATEST UPDATE

 4 views  0 purchase
  • Course
  • Institution

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...

[Show more]

Preview 3 out of 27  pages

  • November 5, 2024
  • 27
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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?


#include <stdio.h>


void fun(int x) {
if (x>0) {

,printf("%d", x);
fun(x-1);
printf("%d", x);
} else {
printf("@");
}
}


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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart