Questions related to c programming

Assignment Help C/C++ Programming
Reference no: EM13725955

Question 1: Which statement will read a floating point value from the keyboard and store it in the variable x?

A. printf("float = %f", x);

B. scanf("%f", &x);

C. scanf("&f", %x);

D. scanf("%d", &x);

Question 2:Structures can at most be nest 3 deep?

True

False

Question 3: What is the equivalent C expression for the area of a circle (PI times radius squared)?

A. 3.14 x r x r

B. 3.14 * r^2

C. 3.14r^2

D. 3.14 * r * r

Question 4: Which statement will print the following variables correctly?int x; float y;

A. printf("x = %d y = %lf", x , y);

B. printf("x = %f y = %f", x , y);

C. printf("x = %d y = %d", x, y);

D. printf("x = %d y = %f", x , y);

Question 5: A procedure consisting of a number of precisely defined steps for solving a problem is called a(n):

A. program

B. algorithm

C. compiler

D. pseudo-code

Question 6: What will be the value of the floating point variable var1 after the following scanf statement if the user enters 123.45456.78 at the keyboard?

scanf("%5f%7f", &var1, &var2);

A. 123.45

B. 12345

C. 45456

D. 123.4

Reference no: EM13725955

Questions Cloud

Health services strategic marketing : Health Services Strategic Marketing: Suggest at least two (2) examples that support the notion of the limiting life span of health care products as a necessity in the ongoing and systematic product succession planning effort
Describe the use of stock options in a compensation plan : Briefly describe the use of stock options in a compensation plan. What are some potential problems with stock options as a form of compensation
How does google support for open access fit into google plan : Case Analysis 4 - Google: Research Google's attempt to buy into wireless via the 700 MHz Spectrum Auction. How does Google's support for Open Access fit into Google's plans
Explain the pilgrims and native americans in massachusetts : Write a 700- to 1,050-word paper in which you examine one of the following topics- Pilgrims and Native Americans in Massachusetts, The kidnapping of colonists by Native Americans and Pequot War.
Questions related to c programming : Which statement will read a floating point value from the keyboard and store it in the variable x? A. printf("float = %f", x); B. scanf("%f", &x); C. scanf("&f", %x); D. scanf("%d", &x);
Marketing plan- integrated marketing communications : Marketing Plan: Integrated Marketing Communications (IMC) Guidelines and Rubric, This is the culmination of the Marketing Plan. Detail the advertising and promotional activities that will be used to promote the product or service
What are the key success factors for competing : What are the key success factors for competing in the supermarket industry in Sonoma County. What is your assessment of Oliver's financial performance and financial condition. Is the company in good financial shape? Why or why not
What are major sources of the federal government revenue : What are the major functions of the government? Briefly discuss and what are the advantages and disadvantages of forming a corporation - what are the major sources of the federal government revenue?
Explain the democratic republicanism of the north differed : In the decades leading up the Civil War the North and South developed into two very different cultures. Explain how the democratic republicanism of the North differed from the aristocratic republicanism of the South.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Attribute information about an array of floating point

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Write a program which has a base process which communicates

write a program which has a base process which communicates with child processes acting as bombers that it

  The definition for a printallplayers() function

Add the Prototype, a call and the definition for a printAllPlayers() function that prints to STDOUT (using cout) each players name and all of their at-bat stats. Only print out the values of the stats array up to timesAtBat.

  Write a c programto find simple interest using function

Write a C programto find simple interest using function ? Please provide running program in C with output screenshoot.

  Write a scanf statement to read in one number (int

1) Write a scanf statement to read in one number (int), and another statement to print out that number.

  Write a method, to be included in a template unsorted list

Write a method, to be included in a template unsorted list class that will print (or reurn) the smallest and the largest values in the list.

  Write a corresponding if else statement

The mathematical operation max(x,y,w,z) can be represented by using the conditional expression operator, as in:  max = (x > y && x > z && x > w) ? x : ((y > z && y > w) ? y : ((z > w) ? z : w))  Write a corresponding if else statement that is equival..

  Multiple choice question on c programming

Create a function to print "88 is a great port number" function name is yourName_PrintFunction no input no return type print "88 is a great port number"

  Write application which ask user to input grades of students

Write C++ application which asks user to input grades for 5 student (3 grades each) save them in five double one dimensional arrays (one array for each student),

  Program which calculates the average and sum of the numbers

write down a program which calculates the average and sum of the numbers enter by a user.Using a While Loop

  Write a program that reads ten numbers

Write a program that reads ten numbers from input and prints them in reverse order.

  Write a c++ program containing a linked list of 10 integer

Write a C++ program containing a linked list of 10 integer numbers. Have the program display the numbers in the list.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd