MCQsLlearn App Download MCQsLearn Free App
As an Amazon Associate I earn from qualifying purchases.

Computer Fundamentals Short Questions and Answers PDF Download eBook

Computer fundamentals short questions and answers, online learning c language MCQs, competency based interview questions for online computer science degree programs. C Language frequently asked questions has Multiple Choice Questions (MCQs) with answers to prepare for career tests.

"The output of following part of program is <code>product =1;<br>printf("enter %d to quit \n", senval);<br>printf("enter first number>");<br>scanf("%d",&dat);<br>while (dat != senval)<br>{ product *=dat;<br>printf("next number> ");<br>scanf("%d",&dat);<br>}</code>" Multiple Choice Questions (MCQ) to practice computer fundamentals short questions and answers with choices compute sum of list of numbers until sentinel word senval is entered, compute product of list of numbers until sentinel word senval is entered, compute average of list of numbers until sentinel word senval is entered, and compute product of list of numbers for top computer science schools in world. Free FAQ, situational interview questions are to learn online FAQs: Computer fundamentals short questions and answers with MCQs for CS major.

FAQ: Computer Fundamentals Short Questions and Answers PDF Download eBook

MCQ: The output of the following part of program is <code>product =1;<br>printf("Enter %d to quit \n", SENVAL);<br>printf("Enter first number>");<br>scanf("%d",&dat);<br>while (dat != SENVAL)<br>{ product *=dat;<br>printf("next number> ");<br>scanf("%d",&dat);<br>}</code>

  1. Compute sum of list of numbers until the sentinel word SENVAL is entered
  2. Compute product of list of numbers until the sentinel word SENVAL is entered
  3. Compute average of list of numbers until the sentinel word SENVAL is entered
  4. Compute product of list of numbers

B

MCQ: The output of the following part of program is <code>do{<br>printf("positive number <10>");<br>scanf("%d",&num);<br>}while(num<1 || num>=10);</code>

  1. Repeatedly asks for number until user enter a number less then 1
  2. Repeatedly asks for number until user enter a number greater then 10
  3. Repeatedly asks for number until user enter a number in the specified range
  4. Repeatedly asks for number until user enter a number greater then or equal to 10

C

MCQ: The output of the following statement is z= ++j * k--;

  1. Stores the product of j and k into z
  2. Stores the product of incremented value of j and k into z
  3. Stores the product of j and decremented value of k into z
  4. Stores the product of incremented value of j and decremented value of k into z

D

MCQ: The output of the following part of program is <code>sum = 0;<br>status = fscanf (infil,"%d", &n);<br>while (status == 1){<br>{ sum+=n;<br>status= fscanf (infil,"%d", &n);<br>}</code>

  1. Stores the sum of a list of numbers taken from a file. The sum is complete and store back to file when fscanf detects endfile character or inaccurate data.
  2. Stores the sum of a list of numbers taken from a file. The sum is complete when fscanf detects endfile character.
  3. Stores the sum of a list of numbers taken from a file. The sum is complete when fscanf detects inaccurate data.
  4. Stores the sum of a list of numbers taken from a file. The sum is complete when fscanf detects endfile character or inaccurate data.

D

MCQ: The output of the following statement is ans*= a-b

  1. Stores the product of ans and a-b into ans
  2. Stores the value of a-b into ans
  3. Calculates the product of ans and a-b
  4. Stores the product of ans and a-b into a

A

When you buy through links on our site, we may earn an affiliate commission from qualifying purchases and referrals.

MCQsLearn Web Portal Copyright © 2014-2021. All rights reserved.