Question

i have an c program exam , i need to prepare for it , as you...

i have an c program exam , i need to prepare for it , as you are experts , can you provide me with list of exams questions with answers so i can revise.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) Which is user defined data type ?

a) integer

b) Structure

c) Enum

Answer is A. So integer and enums are the inbuilt data types and cannot be redefined by the user.

2) what is declaration and definition in C program.

In declaration we assume data type to the variable.

In definition the value is assigned to the variable.

3) When will we be mention the prototype of a function in c?

We can only mention the prototype during the declaration of the function.

4) If we give a value to an array with higher subscript value than the size what happens?

If we assign the value to a higher subscript value than the size the program might crash during the execution and comes with an overflow error.

5) What happens if you pass the array to a function?

In C language only the base address is passed, so changes made to the array will be reflected in the arrays.

6) Fucntion to open a file

fopen is a function that helps to open a file by passing the file path to it together with mode.

7) How to print float and double value to the console.

%f and %lf are used for float and double values respectively.

8) Header file for input and output functions are

stdio.h It is the inbuilt library file used for input and output operations in c language.

9) Purpose of return function

It transfers control from the called function back to the calling function.

10) What are pointers?

It is a variable that stores the address of the another variable.

Add a comment
Know the answer?
Add Answer to:
i have an c program exam , i need to prepare for it , as you...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Information Technology experts? I need help completing my study guide/exam review for my finals. 1. List...

    Information Technology experts? I need help completing my study guide/exam review for my finals. 1. List 2 potential sources for Big Data? 2. List two data visualization features in Excel that can be used to create dashboards and briefly describe their utility. 3. [Spreadsheet modeling formulation] Describe the difference between Requirements and Specifications and provide at least one example to distinguish between these two concepts. Thank you so much. It'll be such a great help towards my review.

  • Part I Directions: Select a program document and imagine you have been assigned to prepare a...

    Part I Directions: Select a program document and imagine you have been assigned to prepare a review of it. In no more than two pages, answer the following questions: How does it meet users’ needs? Does it need revision? Does it address one audience or multiple audiences? Part II Directions: Compose a strong cover letter for the review. Remember to include questions for the reviewers and direct their feedback. Part III Directions: Now change roles and become a reviewer. Write...

  • //I NEED THE PROGRAM IN C LANGUAGE!// QUESTION: I need you to write a program which...

    //I NEED THE PROGRAM IN C LANGUAGE!// QUESTION: I need you to write a program which manipulates text from an input file using the string library. Your program will accept command line arguments for the input and output file names as well as a list of blacklisted words. There are two major features in this programming: 1. Given an input file with text and a list of words, find and replace every use of these blacklisted words with the string...

  • This program should be written as a C code, You need to think how to break...

    This program should be written as a C code, You need to think how to break it down to steps that can do the program. I DON'T WANT YOU TO WRITE THE CODE, I only need you to tell me something like ( first you need a code the do.....) I'm really having a difficult time understanding how it can be written in C or C++

  • You have been asked to write a program to grade several multiple-choice exams. The exam has...

    You have been asked to write a program to grade several multiple-choice exams. The exam has 20 questions, each answered with a letter in the range of ‘a’ through ‘f’. The answers key is declared in the program as constant of type string. An example of answer key is “abcdefabcdefabcdefab”. Your program should work for any other answer key. The program should first ask users for the number of students to be graded. Then it should have a while loop...

  • I need help writing c++ code to make this program. 1. Define a function that can...

    I need help writing c++ code to make this program. 1. Define a function that can read the input file answers.dat. This function should not print anything. 2. Define a function that computes the quiz score of the function by comparing the correct answers to the student’s answer. The result should be a percentage between 0 and 100, not a value between 0 and 1. This function should not print anything. 3. Define a function that prints the report as...

  • Can you help me answer these questions. ●I need complete answers for the whole questions. ●I...

    Can you help me answer these questions. ●I need complete answers for the whole questions. ●I need accurate and correct answers,explanation and drawings ●Kindly provide clearer handwriting and drawing too. THANK YOU SO MUCH FOR YOUR HELP.I REALLY APPRECIATE IT. 6) a)i)sketch the pathway of air in the human respiratory system.(5marks) ii) Analyse air and water as respiratory medium in gas exchange.(5marks) lii))illustrate labelled phases of an action potential.(5marks) b)i)Prepare a labelled diagram of longitudinal section for both xylem and...

  • Write a program that allows the user to enter a series of exam scores. The number...

    Write a program that allows the user to enter a series of exam scores. The number of scores the user can enter is not fixed; they can enter any number of scores they want. The exam scores can be either integers or floats. Then, once the user has entered all the scores they want, your program will calculate and print the average of those scores. After printing the average, the program should terminate. You need to use a while loop...

  • Please show work so that I can see the process also Let’s say you scored a 111 on exam 1 and you scored an 125 on exam 2. You can predict your final exam score with the following prediction equation:...

    Please show work so that I can see the process also Let’s say you scored a 111 on exam 1 and you scored an 125 on exam 2. You can predict your final exam score with the following prediction equation: Y’ = bX + c (round to nearest whole number). X is the total number of points you earned on the first two tests. Given: Mean = 120; standard deviation of y = 100. The correlation (r) between the total...

  • I need to write a C++ program where I need to read in a file and...

    I need to write a C++ program where I need to read in a file and do somethings with information inside the file. We can NOT use arrays. The picture below is what is in the file. My question is how do I read in the file and return the number of studies ( the 5 in the file ) so I can pass it through an other funciton. we need to use ofstream commands.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT