EECS 2031 Software Tools midterm Exam - All answers are Correct - York University EECS 2031
18 views 0 purchase
Course
EECS 2031 Software Tools
Institution
EECS 2031 Software Tools
Question 1 (14.5 pts)
1.1 (0.25 pt) For the following code fragment, what is the output of the printf() statement?
int x = 9, y = 13, z = 3;
printf("z: %dn", z *= y + x + 2 ); z:
1.2 (1 pt) What is the output of the printf() statement?
int x = 2, y = x << 2;
printf("%d %d %d %dn", x, y,...
• This is a closed-book test. No books and notes are allowed.
• Extra space for answers can be found at the end of the test booklet.
• Assume that
o size of char is 1 (byte);
o size of short integer is 2 (bytes);
o size of integer is 4 (bytes);
o size of long integer is 8 (bytes);
o size of float is 4 (bytes);
o size of double is 8 (bytes);
• Also assume that the size of a pointer is 8 (bytes).
Question Value Mark
1 14.5
2 12
3 23.5+1.5 bonus
TOTAL 50 +1.5 bonus
Good Luck
,
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 ExamsConnoisseur. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.