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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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