Docsity

Latest Programming Language Paradigms - Study Guide, Study Guides, Projects, Research of Programming Paradigms

Toggle sidebar
bg1
Latest Programming
Language Paradigms - Study
Guide
{ } - ANSEBNF for a series of zero or more; iteration
# - ANSGiven the following BNF grammar for a language with two infix
operators,
<bar> โ†’ <baz><foo> โ†’ <bar> $ <foo><baz> โ†’ ( <foo> )<bar> โ†’ <bar>
# <baz><baz> โ†’ x | y<foo> โ†’ <bar>
Which operator has higher precedence:
<number> ร  <digit> | <digit><number>| ฮต<digit> ร  0 | 1 - ANSWhich one
of these grammars can produce the string 1010?
where ฮต is the empty string.
add comments to it - ANSTo made program more easier to understand,
programmers can
Algol - ANSWhich PL is considered an ancestor to C, Java, and Ruby?
Assembly - ANSWhich of the following is not a high level programming
language?
block statement - ANSWhat innovation introduced in ALGOL68 is often
credited to Pascal?
pf3
pf4
pf5

Partial preview of the text

Download Latest Programming Language Paradigms - Study Guide and more Study Guides, Projects, Research Programming Paradigms in PDF only on Docsity!

Latest Programming

Language Paradigms - Study

Guide

{ } - ANSEBNF for a series of zero or more; iteration

- ANSGiven the following BNF grammar for a language with two infix

operators, โ†’ โ†’ $ โ†’ ( ) โ†’

โ†’ x | y โ†’

Which operator has higher precedence: ร  | | ฮต ร  0 | 1 - ANSWhich one of these grammars can produce the string 1010? where ฮต is the empty string. add comments to it - ANSTo made program more easier to understand, programmers can Algol - ANSWhich PL is considered an ancestor to C, Java, and Ruby? Assembly - ANSWhich of the following is not a high level programming language? block statement - ANSWhat innovation introduced in ALGOL68 is often credited to Pascal?

Byte code - ANS_______________ is the assembly language for an imaginary architecture. C - ANSSystem programming C - ANSThe _____ programming language is an example of a compiled language. Cobol - ANSBusiness applications Components of a grammar - ANSProductions, non-terminal symbols, terminal symbols, and a start symbol that must be a non-terminal. Denotational semantics - ANSThe most rigorous and most widely known formal method for describing the meaning of programs? Derivation - ANSThe outcome of replacing a non-terminal by the right-hand side of one of its productions Easy development - ANSFrom the point of view of the programmer what are the major advantages of using a high-level language rather than internal machine code or assembler language? Easy development - ANSFrom the point of view of the programmer what are the major advantages of using a high-level language rather than internal machine code or assembler language? Encapsulation, Inheritance, and Polymorphism - ANSWhich of the following mechanisms is/are provided by Object Oriented Language to implement Object Oriented Model?

False - ANSThe EBNF notation allows one to define grammars that can not be defined using the simpler BNF notation. False - ANSThe lexical structure of complex programming languages like Java can not be defined using BNF. FORTRAN - ANSProgramming language which is used for scientific purposes in batches is Fortran - ANSScientific applications function-oriented - ANSScala is a part of the: _____ hierarchical - ANSWhich following term(s) is not a PL programming paradigm? interpreter - ANSA program which interprets each line of high level program at time of execution is called It causes infinite looping - ANSWhy do we remove left recursion from BNF? Java - ANSInternet programming Just in time - ANSJIT stands for? left - ANSGiven the following BNF grammar for a language with two infix operators represented by # and $. โ†’ โ†’ $ โ†’ ( ) โ†’

โ†’ x | y โ†’

What is the associativity of the # operator: Lexer(Lexical Analyzer) - ANSWhich program groups characters in code into tokens in a compiler? LISP - ANSArtificial intelligence Logic Programming - ANSProlog comes under ___________ machine language, assembly language, high level language - ANSWhat are three main types of computer programming languages? multiple variables having the same memory location - ANSAliasing in the context of programming languages refers to Preconditions and Postconditions - ANSIn Axiomatic semantics, the meaning of a specific statement is defined by: Reduce Complexity - ANSWhich of the following is the functionality of 'Data Abstraction'? right - ANSGiven the following BNF grammar for a language with two infix operators represented by # and $. โ†’ โ†’ $ โ†’ ( ) โ†’

โ†’ x | y โ†’

What is the associativity of the $ operator: Scalable language - ANSScala is short form of

True - ANSIf the grammar for a language is unambiguous, then there is only one way to parse each valid sentence in that language. True - ANSOperational semantics is an attempt to describe the meaning of a statement by specifying the effects of running it on a machine. True - ANSPascal became the most widely used introductory language. True - ANSRecursive descent parser is a top-down parser. True - ANSSynthesized attributes are used to pass semantic information up a parse tree. True - ANSThe "Von Neumann" computer architecture is characterized by hardware that has a CPU separate from memory, which is used to hold both data and programs. True - ANSThe imperative and procedural programming paradigms are names for the same thing. True - ANSThe order of production rules in a grammar is not significant, i.e., two grammars with identical rules but given in different order will always define the same language. Type checking is done before parsing. - ANSWhich of the statements is FALSE?