What is the use of return keyword?

1 Answer

Answer :

A: return keyword is used to return any value from a function. It denotes the end of a function.

Related questions

Description : In C++, the keyword void was used ……….. A) To specify the return type of function when it is not returning any value. B) To indicate an empty argument list to a function. C) To declare the generic pointers. D) All of the above.

Last Answer : D) All of the above.

Description : What is the use of ‘this’ keyword?

Last Answer : A: It is used to refer to the current object (the object which calls the function).

Description : What is the use of ‘new’ keyword?

Last Answer : A: It is used for dynamic memory allocation to reference data types.

Description : What is the use of final keyword?

Last Answer : A: Final can be used in three scenarios: a) final before a variable makes it a constant. b) final before a function declaration prevents it from being overridden. c) final before a class declaration prevents it from being inherited.

Description : What is super keyword?

Last Answer : A: It is a keyword which is used to access the data members and methods of the super class from within the sub class.

Description : Which keyword is used to raise an exception?

Last Answer : A: throw keyword.

Description : Using which keyword we can access value of the instance variables and class variables of that class inside the method of that class itself. A) super B) final C) this D) either super or this

Last Answer : C) this

Description : Which of the following is used to make an Abstract class ? (A) Making atleast one member function as pure virtual function (B) Making atleast one member function as virtual function (C) Declaring as Abstract class using virtual keyword (D) Declaring as Abstract class using static keyword

Last Answer : (A) Making atleast one member function as pure virtual function

Description : Methods must declare a return type, what is the keyword used when nothing is returned from the method?

Last Answer : void 

Description : what does the term keyword prominence refer to? A. It refers to the importance attached to getting the right keyword density.  B.It refers to the fact that the keywords in bold font are ... fact that the keywords placed in important parts of a webpage are given priority by the search engines

Last Answer : D.It refers to the fact that the keywords placed in important parts of a webpage are given priority by the search engines

Description : State True or False i) A destructor never takes any argument nor does it return any value. ii) It releases memory space for future use. A) True, True B) True, False C) False, True D) False, False

Last Answer : A) True, True

Description : Can there be multiple return statements in a function?

Last Answer : A: Yes, but only one of them is executed.

Description : What does System.in.read() return?

Last Answer : A: It returns the number of bytes read from the Input Stream as an integer.

Description : Methods can be overloaded with a difference only in the type of the return value .. A) Not supported B) False C) True D) None of the above

Last Answer : B) False

Description : Which of the following do not represent legal flow control statements? A) break; B) return; C) exit(); D) continue outer;

Last Answer : C) exit();

Description : Which of the following do not represent legal flow control statements? A) break; B) return; C) exit(); D) continue outer;

Last Answer : C) exit();

Description : State True or False. i) While overloading operators new operator can be overloaded. ii) The binary operator such as +, -, * and must explicitly return a value. A) True, True B) True, False C) False, True D) False, False

Last Answer : C) False, True

Description : Which of the following characteristics of constructor are true. i) They should be declared in the public section. ii) They are invoked automatically when the objects are created. iii) They do not have return type and void also. ... and v C) Only i, iii, iv and v D) All i, ii, iii, iv and v

Last Answer : D) All i, ii, iii, iv and v

Description : Some of the situations where inline expansion may not work are: A) For functions returning values, if a loop, a switch or goto exists. B) If functions contain static variables and they are re-cursive. C) For functions not returning values, if return statement exist. D) All of the above.

Last Answer : D) All of the above.

Description : If a is an integer variable, a=7/3; will return a value A) 2.5 B) 3 C) 0 D) 2

Last Answer : D) 2

Description : The rate of ……………. Is always an important factor for management especially in relation to the rate of return A) Cost B) Benefit C) Sales D) Investment

Last Answer : D) Investment

Description : Which of the following commands would return process_id of sleep command? (A) Sleep 1 and echo $? (B) Sleep 1 and echo $# (C) Sleep 1 and echo $x (D) Sleep 1 and echo $!

Last Answer : (D) Sleep 1 and echo $!

Description : What does the following expression means ? char *(*(* a[N]) ( )) ( ); (A) a pointer to a function returning array of n pointers to function returning character pointers. (B) a ... to characters (D) an array of n pointers to function returning pointers to functions returning pointers to characters.

Last Answer : Answer: A,B,C,D

Description : Consider the following three SQL queries (Assume the data in the people table) : (a) Select Name from people where Age>21; (b) Select Name from people where Height>180; (c) Select Name from people where (Age>21) or (Height ... number of rows returned by the SQL query (c) ? (A) 3 (B) 7 (C) 10 (D) 21

Last Answer : (C) 10

Description : Implicit return type of a class constructor is: (A) not of class type itself (B) class type itself (B) a destructor of class type (D) a destructor not of class type 

Last Answer : (B) class type itself

Description : What is the value returned by the function f given below when n = 100 ? int f(int n)  { if (n==0) then return n;  else return n + f(n-2);  } (A) 2550 (B) 2556 (C) 5220 (D) 5520

Last Answer : (A) 2550

Description : Consider the following JAVA program: public class First { public static int CBSE (int x) { if (x < 100) x = CBSE (x +10); return (x - 1); } public static void main (String[] args){ System.out.print(First.CBSE(60)); } } What does this program print? (1) 59 (2) 95 (3) 69 (4) 99

Last Answer : (2) 95 

Description : It is a commercial unit where salespeople work. 

Last Answer : Have you ever tried the term "boss training"? I think there are good results for it on Google. True, it’s not profession specific, but I think you can find good advice on this in general. For this keyword, for example, THIS is the first result on the page, it's worth reading through.    

Description : Write code to use threading and the lock keyword. 

Last Answer : using System; using System.Threading; namespace ConsoleApplication4 { class Class1 { [STAThread] static void Main(string[] args) { ThreadClass tc1 = new ThreadClass(1); ThreadClass tc2 = new ThreadClass( ... Console.WriteLine(threadNumber + " working"); Thread.Sleep(1000); } } } } }

Description : What keyword would you use for scope name clashes?

Last Answer : this

Description : The best way to improve search engine ranking is with ........  A. Keyword research  B.Internally link to other pages  C.Use ALT tags with all your images  D.All of the above

Last Answer : D.All of the above

Description : When you need to create thousands of ad groups, what is the best tool to use? A. Bulk interface creator B. Report editor C. Keyword Planner D. Google Ads Edito

Last Answer : D. Google Ads Edito

Description : Define what is the use of the abstract keyword?

Last Answer : The modifier abstract is a keyword used with a class, to indicate that this class cannot itself have direct instances or objects, and it is intended to be only a ‘base’ class to other classes.

Description : Why use the keyword “const” in C#? Give an example.

Last Answer : “Const” keyword is used for making an entity constant. We can’t reassign the value to constant. Eg: const string _name = “Test”;

Description : What is the use of Transient Keyword ?

Last Answer : Ans. It in Java is used to indicate that a field should not be serialized.

Description : How can I subscribe news by E-mail with the keyword search??

Last Answer : We don’t know what will work for you in China.

Description : What is the best tool to check the keyword ranking in Google SERPs?

Last Answer : answer:Kinda surprised no one responded to this one. Not too many SEO's round these parts. Anyway, your headline question doesn't exactly make sense. Keywords don't rank in the Google SERPs, websites do. ... seorush, seoquake, or many of the others you'd find by typing in SEO toolbars into Google

Description : Is there a program to search through my current window for a keyword?

Last Answer : In (most?) browsers that would be Ctrl + F.

Description : I would love my webpage to show up on google searches when using a certain keyword (not in the advertisement space), but i also don't want to change anything visible on the page. is there anything i can do?

Last Answer : meta tags, give this a read: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=79812

Description : What is Keyword Stuffing?

Last Answer : http://www.keywordsolutions.co.uk/illegal-seo.php It is not an acceptable practice.

Description : What's the best tool for researching keyword popularity in google?

Last Answer : Do you mean what are popular searches? - http://www.google.com/trends Do you mean how to find what keywords on your site are popular? - http://www.google.com/webmasters/tools/ Or, do you mean finding what your results position is for different keywords?...

Description : Do search engines still ignore keyword meta tags?

Last Answer : Yes. The main (big) ones do, at least.

Description : How is a keyword search different from subject search? -Technology

Last Answer : A keyword is simply a word that shows up somewhere in a record: it can be part of name, a subject, or a title, or appear in the table of contents.This is different from a subject search, which looks for the word only in the subject heading field.

Description : Explain the Boolean operators and their impact on search result while connecting two keyword “A” and “B”. -Technology

Last Answer : a. Introduction/ definition of Boolean Operators, And Or Not.b. If A, B two key words are connected with OR operator and made the string, then the search result would be all those records which have ... since it has key word B so it will not be shown in the search result.Example . . .

Description : How to to determine if a string is a Python keyword. -Web-Development

Last Answer : answer:

Last Answer : Need Answer

Description : Is there any way to find out where my site is on a particular word? I don't want to manually search and browse so many pages.

Last Answer : Hello, http://www.serp.cz/detekce/ultimate finding placement of pages up to 1,000 positions.

Description : What is keyword proximity?

Last Answer : Keyword proximity according to SEO is the distance, in number of words, between two single keywords of a search-term. Example: If serch term is "best mobile shop" then distance between "best" ... The less the Keyword Proximity the more relevant will be the search-term according to search engine.

Description : What are the best online SEO tool and keyword research tools available in the market?

Last Answer : Soovle. Scrape suggested keywords from multiple sources. ... Jaaxy. Get thousands of related keyword ideas within seconds. ... Google Search Console. Find hundreds of â⠬ŠOpportunity Keywordsâ⠬. ... ... .. SECockpit. ... Google Keyword Planner. ... KeywordTool.io. ... Moz Keyword Explorer.