Functions Yes / No Questions (2024)

1.

Functions cannot return a floating point number

Yes

No

Answer: Option

Explanation:

A function can return floating point value.

Example:

#include <stdio.h>float sub(float, float); /* Function prototype */int main(){ float a = 4.5, b = 3.2, c; c = sub(a, b); printf("c = %f\n", c); return 0;}float sub(float a, float b){ return (a - b);}

Output:
c = 1.300000

2.

Every function must return a value

Yes

No

Answer: Option

Explanation:

No, If a function return type is declared as void it cannot return any value.

3.

If a function contains two return statements successively, the compiler will generate warnings. Yes/No ?

Yes

No

Answer: Option

Explanation:

Yes. If a function contains two return statements successively, the compiler will generate "Unreachable code" warnings.

Example:

#include<stdio.h>int mul(int, int); /* Function prototype */int main(){ int a = 4, b = 3, c; c = mul(a, b); printf("c = %d\n", c); return 0;}int mul(int a, int b){ return (a * b); return (a - b); /* Warning: Unreachable code */}

Output:
c = 12

4.

Maximum number of arguments that a function can take is 12

Yes

No

Answer: Option

Explanation:

No, C can accept upto 127 maximum number of arguments in a function.

5.

Will the following functions work?

int f1(int a, int b){ return ( f2(20) );}int f2(int a){ return (a*a);}

Yes

No

Answer: Option

Explanation:

Yes, It will return the value 20*20 = 400

Example:

#include <stdio.h>int f1(int, int); /* Function prototype */int f2(int); /* Function prototype */int main(){ int a = 2, b = 3, c; c = f1(a, b); printf("c = %d\n", c); return 0;}int f1(int a, int b){ return ( f2(20) );}int f2(int a){ return (a * a);}

Output:
c = 400

Functions Yes / No Questions (2024)

FAQs

What is the function of yes-no questions? ›

We usually use negative yes-no questions to check or confirm something we believe or expect to be the case, or when we consider that something is the best thing to do: Isn't that Pauline's car? (I'm pretty sure that this is correct. I'm asking for confirmation.)

What are questions with yes or no answers called? ›

What Are Yes/No Questions? Yes/No questions need either a yes or a no as the answer. Because of this limitation in response, they are also called closed questions.

How many possible answers are there in a yes-no question? ›

In contrast, yes–no questions are closed-ended questions, as they only permit one of two answers, namely "yes" or "no".

What is the formula for the yes or no questions? ›

The formula here is: a form of do + subject + bare form of verb + rest of the sentence. The hardest part about Category 2 yes/no questions is the main verb: Remember that the main verb changes to its bare form.

What are the functions of questions? ›

The principal use of questions is to elicit information from the person being addressed by indicating the information which the speaker (or writer) desires. A slight variant is the display question, where the addressee is asked to produce information which is already known to the speaker.

What is the function asking and answering questions? ›

We ask questions in order to learn more information about something, and we answer questions to provide more information. Asking and answering questions is not only a part of how we learn, but it is also a part of our social skills; we ask and answer questions to be polite and build and maintain relationships.

What are questions without answers called? ›

A rhetorical question is a question that is not meant to have or does not require an answer.

What is a yes or no question called in statistics? ›

Yes or no questions, also known as dichotomous questions, are a type of survey questions where respondents are asked to choose between two possible responses: yes or no.

How to answer negative yes/no questions? ›

The best thing to do is give them a FULL answer, not just yes or no. You should answer, no, I don't. Or no, but I like other nuts. No (or yes), I'm allergic to peanuts.

How many ways can 12 yes or no questions be answered? ›

Detailed Solution

= 212 – 1 = 4096 – 1 = 4095 ways. Hence, the required answer is 4095 ways.

Is 20 questions only yes or no answers? ›

Only 20 questions are allowed, each phrased so that it may be answered “yes” or “no.” The winner is the person who guesses the correct answer; if there is no correct guess, the answerer is the winner.

Is 20 questions yes or no answers? ›

Every question can only be a yes/no question.

Some people award a point as long as you correctly guess the object, and in other versions you get an additional point for every additional question you didn't ask.

What is the formula for asking questions? ›

question word - auxiliary verb - subject- verb - complement

This formula sometimes implements the additional noun or adjective between the question word and the auxiliary verb.

What is a formula question? ›

A Calculated Formula question contains a formula, the variables of which can be set to change for each user. The variable range is created by specifying a minimum value and a maximum value for each variable. Answer sets are randomly generated. The correct answer can be a specific value or a range of values.

How many ways can 10 yes or no type questions be? ›

Required number of ways are 210=1024, because every question may be answered in 2 ways. Q. In how many ways can an examinee answer a set of ten true/false type questions?

What is the goal of the yes-no question IEP? ›

Yes/No questions are simple yet powerful tools that can be used to gather information, assess understanding, and promote critical thinking. By incorporating Yes/No questions in IEP goal planning, educators can gain valuable insights into a student's abilities, preferences, and areas of improvement.

What are the advantages of yes or no questions? ›

Advantages of yes-or-no questions
  • Binary. A yes-or-no question is binary, which means there are only two possible answers. ...
  • Unambiguous. ...
  • Easy to understand. ...
  • Overly simple answers. ...
  • Possibility of confusion. ...
  • Not applicable. ...
  • Short surveys and quick reactions. ...
  • Decision questions for form logic.
Jan 25, 2024

What is the use of yes-no data type? ›

The Yes-No field is used to collect data with only a Yes or No answer. The field appears as a drop-down list on the canvas. The answer is stored in a database as a 1 or 0 where 1 = Yes and 0 = No.

What is yes and no in grammar? ›

Yes and no are usually considered adverbs in dictionaries, though some uses qualify as nouns. Sentences consisting solely of one of these two words are classified as minor sentences.

Top Articles
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 5998

Rating: 4.1 / 5 (62 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.