Click to Get updated NTA UGC NET CS Test Series           Study Material for UGC NET Computer Science- 2019

# C Programming MCQ - Functions & Recursion

11:   The function is lower(char) checks whether a character is in lower case or not, therefore it should return
 A. 0 or 1 B. -1,0 or 1 C. a character D. nothing Answer Report Discuss Option: A Explanation : Click on Discuss to view users comments. Write your comments here:
12:   If max is a function that returns the larger of the two integers, given as arguments, then which of the following statements finds the largest of three given numbers
 A. max(max(a,b),max (a,c)) B. max(max(a,b),max (b,c)) C. max(b,max (a,c)) D. All of these Answer Report Discuss Option: D Explanation : Click on Discuss to view users comments. Write your comments here:
13:   A function can make
 A. One throw B. One throw of each scale type C. One throw of each programmerdefined type D. As many throws of as many types as necessary Answer Report Discuss Option: D Explanation : Click on Discuss to view users comments. Write your comments here:
14:

Consider the function

find ( int x, int y)
{
return (( x < y ) ? 0 : ( x - y ));
}

Let a, b be two non-negative integers.
The call find{ a, find(a, b)} can be used to find the

 A. maximum of a, b B. positive difference of a, b C. sum of a, b D. minimum of a, b Answer Report Discuss Option: D Explanation : Click on Discuss to view users comments. Write your comments here:
15:

Let a, b be two non-negative integers. Which of the following calls, finds the positive difference of a and b ?

 A. find(a, b) + find (b, a) B. find (a, find(a, b)) C. a + find (a, b) D. b + find(a, b) Answer Report Discuss Option: A Explanation : Click on Discuss to view users comments. Write your comments here: X
{"ft_lang_label":"__label__en","ft_lang_prob":0.6732039,"math_prob":0.58045065,"size":839,"snap":"2020-34-2020-40","text_gpt3_token_len":274,"char_repetition_ratio":0.10778443,"word_repetition_ratio":0.19277108,"special_character_ratio":0.35041717,"punctuation_ratio":0.23113208,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99250835,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-19T16:43:56Z\",\"WARC-Record-ID\":\"<urn:uuid:da518e0d-bb9b-4fec-9935-47e2eeb2449c>\",\"Content-Length\":\"90549\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d3ee8da6-4c09-4c2b-8301-1e9600daddba>\",\"WARC-Concurrent-To\":\"<urn:uuid:20aa43b0-73d8-4600-843f-4c8b59afdfa9>\",\"WARC-IP-Address\":\"203.124.118.20\",\"WARC-Target-URI\":\"https://www.avatto.com/computer-science/test/mcqs/questions-answers/c/21/3.html\",\"WARC-Payload-Digest\":\"sha1:KRVIFLPG7QPIXQG4M2PCY74EVWO6JKTC\",\"WARC-Block-Digest\":\"sha1:5BP54F4OATGCEVY34DT226AVXN4QA6ZV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400192778.51_warc_CC-MAIN-20200919142021-20200919172021-00523.warc.gz\"}"}