100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRF 192 - FE (1). Top Exam Questions & Answers. Rated A+ $9.49   Add to cart

Exam (elaborations)

PRF 192 - FE (1). Top Exam Questions & Answers. Rated A+

 3 views  0 purchase
  • Course
  • Institution

PRF 192 - FE (1). Top Exam Questions & Answers. Rated A+ Given the code below char ch; scanf("%c",$ch); printf("%c",ch); A user enters "abcd" from the console What is printed? A. Blank (nothing) B. Compile error C. a D. abcd - C. a Given x, y, z are of floating-point type, which o...

[Show more]

Preview 3 out of 20  pages

  • August 12, 2023
  • 20
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
PRF 192 - FE (1). Top Exam Questions &
Answers. Rated A+

Given the code below

char ch;

scanf("%c",$ch);

printf("%c",ch);

A user enters "abcd" from the console

What is printed?

A. Blank (nothing)

B. Compile error

C. a

D. abcd - ✔✔C. a



Given x, y, z are of floating-point type, which of following C expression is INCORRECT?

A. All of others

B. x = y . z

C. x = y -> z

D. x= y ^ z - ✔✔A. All of others



Which is the INCORRECT statement?

A. In the buffered type, the program can respond to each and every keystroke directly.

B. Input to a program may be buffered or unbuffered .

C. Buffered input enables data editing before submission to a program.

D. A buffer is a region of memory that collects and holds data temporarily. - ✔✔A. In the buffered type,
the program can respond to each and every keystroke directly.

,Given the code below

int a=1;

int i=7;

if (a || i++)

i++;

printf("%d',i);

What is the output?

A. 7

B. 8

C. 9

D. other - ✔✔B. 8



What does the function feof(FILE*fp) return if our program has not attempted to read the end of file
mark?

A. Does not return anything

B. 1

C. 0

D. -1 - ✔✔C. 0



Which of the following are NOT TRUE about function?

A. A function may receive data and may return a value.

B. A function definition consists of a header and a body.

C. A function can receive more than one parameter.

D. Variable cannot passed to the function. - ✔✔D. Variable cannot passed to the function.



What is the output?

void fun1(int a, int b) {

a++;

b++;

, }

main() {

int x=5, y=10;

fun1(x,y);

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

return 0;

}

A. 11 6

B. 10 5

C. 5 10

D. 6 11 - ✔✔C. 5 10



Why hexadecimal and octal representations are used for sets of bits?

A. Because these representations are considerably shorter and more convenient.

B. Because they are larger than bit unit.

C. Because modern computers process and store information in hexadecimal and octal digits. - ✔✔A.
Because these representations are considerably shorter and more convenient.



What is the output?

#include<stdio.h>

#include<string.h>

#include<ctype.h>

void main() {

char str[] = "xyzt";

int len = strlen(str);



for(int i=0; i < len; i++)

{

if(i%2 == 1)

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 $9.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 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

Recently viewed by you


$9.49
  • (0)
  Add to cart