Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
r05310505 Principlesofprog.languages

r05310505 Principlesofprog.languages

Ratings: (0)|Views: 625|Likes:
Published by SRINIVASA RAO GANTA

More info:

Published by: SRINIVASA RAO GANTA on Feb 25, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/01/2010

pdf

text

original

 
Code No: 35014
R05 Set No - 1
III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009PRINCIPLES OF PROG. LANGUAGESComputer Science And EngineeringTime: 3 hours Max Marks: 80Answer any FIVE QuestionsAll Questions carry equal marks
    
1. (a) Explain how subprogram names are passed as parameters.(b) Explain how subprogram is overloaded? Give examples. [8+8]2. Explain in detail the sequence control in ML. [16]3. What are different methods for semantic description? Explain with examples. [16]4. (a) What are Boolean types? How they are usually represented on a machine?(b) Distinguish between explicit variable declaration and implicit variable decla-ration. What is the danger associated with implicit declaration?(c) What are the advantages and disadvantages of stack-dynamic variables? [5+5+6]5. Explain two-way selectors, their design issues, problems with nesting selectors. Howvarious programming languages resolve the problem? [16]6. (a) With an example explain how reliability and cost of execution conflict witheach other.(b) What do you mean by orthogonality? How does it contribute to readability?(c) Explain briey various language categories. [4+4+8]7. (a) What is binary semaphore? What is counting semaphore?(b) Describe the actions of the three Java Methods that are used to support co-operation synchronization.(c) Explain the two Java constructs that can be synchronized. Give the reasons.(d) Which is more general, concurrency through monitors or concurrency throughmessage passing. [5+5+3+3]8. (a) Discuss about basic elements of prolog. Give examples.(b) Write a prolog description of your family tree (based only on facts),going backto your grand parents and including all descendants. Be sure to include allrelationships. [8+8]
    
1
 
Code No: 35014
R05 Set No - 2
III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009PRINCIPLES OF PROG. LANGUAGESComputer Science And EngineeringTime: 3 hours Max Marks: 80Answer any FIVE QuestionsAll Questions carry equal marks
    
1. (a) Define semaphores. Explain, how cooperation synchronization and competi-tion synchronization are implemented using semaphores.(b) What are the primary problem using semaphores to provide synchronization?[8+8]2. (a) What are the advantages and disadvantages of user-defined overloading?(b) Write notes on operator evaluation order.(c) Explain in detail relational and Boolean expressions. [4+6+6]3. (a) Write on decimal data types. What are the advantages and disadvantages of decimal data type?(b) What is a variable and what are the attributes of a variable? Elaborate onaddress of a variable.(c) What are the design issues for names? Explain in detail. [5+5+6]4. (a) Explain how Sub-programs are overloaded.(b) Discuss about the procedures and functions in Sub-programs. [8+8]5. What is meant by logic programing? What are the applications of it? Explain logicprogramming in PROLOG with examples? [16]6. (a) Explain the uses of exception handling in programming languages.(b) Explain the salient features of PROLOG. [8+8]7. (a) How do datatypes and structures aid readabililty?(b) What do you mean by virtual computer?(c) Can a computer be designed and built with a particular high-level languageas its machine language. Describe the characteristics of such a computer.[4+4+6]8. (a) What do you mean by static semantics? Give examples of static semanticrules that are difficult and impossible to describe with BNF.(b) A concise and understandable description of a programming language is es-sential to the language’s success. Comment on this.(c) Define axiomatic semantics. Comment on its applicability. [5+5+6]
    
2
 
Code No: 35014
R05 Set No - 3
III B.Tech I Semester Supplimentary Examinations,Nov/Dec 2009PRINCIPLES OF PROG. LANGUAGESComputer Science And EngineeringTime: 3 hours Max Marks: 80Answer any FIVE QuestionsAll Questions carry equal marks
    
1. (a) Discuss about various programming domains and their associated languages.(b) Give some reasons why computer scientists and professional software develop-ers should study general concepts of language design and evaluation. [8+8]2. (a) Explain two-way selectors and their design issues.(b) Explain in detail relational expressions, Boolean expressions and short-circuitevaluations. [8+8]3. (a) Distinguish between pass-by-value and pass-by reference.(b) Explain the characteristics of sub program. [8+8]4. (a) What is the problem with case sensitive names?(b) Write short notes on floating-point data type. What do you mean by precisionand range? Also give IEEE Floating-Point Standard 754 format for single-and-double-precision representation.(c) What is a variable? What are the attributes of a variable? Elaborate on eachof them. [4+6+6]5. (a) Write about Function composition , construction and apply-to-all, in mathe-matical functions.(b) Write about simple functions in mathematical function. [8+8]6. (a) Briefly discuss about different types of abstract data types.(b) What are the languages design requirements for a language that supportsabstract data types?(c) What is an ADA specification package? What is body package? [6+5+5]7. (a) Write comparisons of Prolog with ML including two similarities and two Dif-ferences(b) Write a Prolog program that finds the maximum of list of numbers. [8+8]8. (a) Distinguish between two mathematical models of a language description.(b) What do you mean by static semantic rules? Give examples of programminglanguage structures or elements that can be described easily with attributegrammars than with BNF.(c) Describe the basic concept of denotational semantics. [5+5+6]
    
3

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->