100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRF 192 – FE (3) Top Exam Questions & Answers, 100% Accurate. VERIFIED. $10.49   Add to cart

Exam (elaborations)

PRF 192 – FE (3) Top Exam Questions & Answers, 100% Accurate. VERIFIED.

 8 views  0 purchase
  • Course
  • Institution

PRF 192 – FE (3) Top Exam Questions & Answers, 100% Accurate. VERIFIED. What is the output? int i = 1; while(i<=10) if(i%2==1) printf("%d",i++); else printf("%d",i--); A. compile error B. 1 2 1 2 ... (infinite loop) C. 1 2 4 6 8 10 D. 1 E. 1 3 5 7 9 - B. 1 2 1 2 ... (infinit...

[Show more]

Preview 3 out of 18  pages

  • August 12, 2023
  • 18
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
PRF 192 – FE (3) Top Exam Questions &
Answers, 100% Accurate. VERIFIED.

What is the output?



int i = 1;

while(i<=10)

if(i%2==1)

printf("%d",i++);

else

printf("%d",i--);

A. compile error

B. 1 2 1 2 ... (infinite loop)

C. 1 2 4 6 8 10

D. 1

E. 1 3 5 7 9 - ✔✔B. 1 2 1 2 ... (infinite loop)



Which is the correct order when listing the following languages from the lowest to the highest level?

A. C, Assembly, C++, MATLAB

B. Assembly, C, C++, MATLAB

C. Assembly, MATLAB, C, C++

D. C, C++, Assembly, MATLAB - ✔✔B. Assembly, C, C++, MATLAB



If an array has n elements, the largest subscript is_______ .

A. n-2

B. n-1

C. n

,D. n+1 - ✔✔B. n-1



What is the maximum value of an unsigned char?

A. 128

B. 127

C. 255

D. 256 - ✔✔C. 255



What is the correct definition of an array?

A. An array is the collection of different data types located next to each other in the memory.

B. An array is a collection of the same data type spread throughout the memory.

C. An array is the collection of the same data type located next to each other in the memory.

D. An array is the collection of different data types spread throughout the memory. - ✔✔C. An array is
the collection of the same data type located next to each other in the memory.



What is the output?



void foo(int x, int*y) {

x = x*x;

*y = *y**y;

}

int main() {

int x = -5, y = -2

foo(x,y);

printf("%d %d", x, y);

return 0; }

A. -5 4

B. -5 -4

C. -5 -2

, D. 25 4

E. 5 4 - ✔✔A. -5 4



Give the declaration

int ref[] = {1, 2, 4};



What is the value of *(ref+1)?

A. 1

B. 4

C. 2

D. None of the above - ✔✔C. 2



What is the output?



#include<stdio.h>

#include<string.h>



void main() {

char str[50];

strcpy(str,"Hello World");

*(str+7) = '\0';

printf("%s", str);

}



A. Error

B. Hello World

C. Hello W

D. Other

E. Hello \0rld

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 PassPoint02. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77851 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.49
  • (0)
  Add to cart