# PPL Viva Voce

Most of the students were not able to answer the following questions:-

1) Example of pure functional programming paradigm?
2) Example of Logic programming paradigm?
Ans. Prolog
3) Work of Lexical analysis in compilation?
Ans. To validate the lexems/words.
4) What is the work of Parse tree?
Ans. To check the syntax/grammar during compilation.
5) Concept of Binding?
Ans. Should say all type of relation between variable and its type.
6) Types of Type checking?
Ans. Static ( int a = 10;) and Dynamic (\$a = 10).
7) Strong typing?
Ans. When variable type is defined (int a = 10).
8) What is subprogram?
Ans. Functions and procedures.
9) What are the fundamentals of subprogram?
Ans. You should say all the characterstics and terms of a function/subprogram.
10) What are design issues of funtions?
Ans. You should say about precautions taken duriong creating a function (i.e, its type, number of value return or side effects etc.).
11) What is local referencing environments ?
Ans. Say about local variables and nested subprograms.
12) Wht is generic subprogram?
Ans. A subprogram in which a memory location is capable to store different types of variables.
example: template in C++.
13) What is concurrency ?
Ans. Its simultaneous execution of  processes/subprogram/program/statements etc.
14) What is semaphore?
Ans. Its a ineger variable  (int S), which acceses only by wait() or signal(). Used to prevent critical section problem.
15) What are the basic elements of prolog?
Ans. Term, fact , rules.
16) What are the applications of Logic programming?
Ans. Parsing, simulation etc.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8353065,"math_prob":0.8526485,"size":1593,"snap":"2023-14-2023-23","text_gpt3_token_len":373,"char_repetition_ratio":0.15229703,"word_repetition_ratio":0.0,"special_character_ratio":0.24419335,"punctuation_ratio":0.1855346,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9628234,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-20T19:19:30Z\",\"WARC-Record-ID\":\"<urn:uuid:5d5613bb-9cce-4a02-b878-b451947428d6>\",\"Content-Length\":\"47890\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b3ca1de8-f02d-4c05-8301-b638a3dbb7fb>\",\"WARC-Concurrent-To\":\"<urn:uuid:ff0be195-c796-45ad-a96d-745eeb5db0a7>\",\"WARC-IP-Address\":\"184.168.115.59\",\"WARC-Target-URI\":\"http://easyexamnotes.com/ppl-viva-voce/\",\"WARC-Payload-Digest\":\"sha1:YXNRAQN3G7NTQGJAKT5DK75PMEG5AGC3\",\"WARC-Block-Digest\":\"sha1:RIAAB5PWYHOMOI4STB62IYOMYHQP6VMU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296943555.25_warc_CC-MAIN-20230320175948-20230320205948-00019.warc.gz\"}"}