Note Quiz 1 k all 10 questions ise file main sy thay Note handouts main note keyword ko search krien important points hain jin ko lazmi yaad krna hy. Ada discriminate types is similar to . C/C++ pointer C/C++ union C/C++ reference All of the given Page # 52 - My Ok The block structure feature of ALGOL60 has scope. No Local Universal Global Page # 26 – My Ok Unlike C/C++, Ada can have _____ within functions/procedures. Objects Functions/procedures Events Parameters Page # 58 – My Ok In the Decimal fixed point type, the distance between values is implemented as a power of 2 10 8 16 Page # 50 – My Ok Function must have at least ______ return statement. Three Two One Four Page # 57 – My Ok Every function must have at least one return statement. A procedure is not required to have any return statements. The expression in a function's return statement must evaluate to a type that matches the return type in the function's declaration. ______ operations must have one of its parameters of the tagged type. Concurrent Synchronized Primitive Generic Page # 59 – My Ok An understanding of implementation issues leads to a/an ______ of why languages are designed the way they are. Uncertainty Understanding Misunderstanding Confusion Page # 5 – My Ok ________ has an efficient use of processor and memory. Plankul Kool LISP CORBA C++ Imperative programming languages are the direct result of . Charles Babbage engine Logic or list program languages. Von Neumann architecture Language application domain Page # 22 – My Ok Following are imperative languages EXCEPT LISP C FORTRAN PASCAL Page # 22 – My Ok Which statement is true from programming language evolution perspective about 1970's era? Analysis and elaboration era Era of effective software technology Era of object oriented programming languages Era of discovery and description Page # 30 – My Ok SNOBOL language questions starts from here Variable name in SNOBOL may not be longer than . 150 characters 250 characters 500 characters 120 characters Page # 33 – My Ok If we have two spaces in SNOBOL the first is used for and the second one for . concatenation, pattern matching immediate assignment, replacement pattern matching, concatenation as a whole assignment, immediate assignment. Page # 35 & 36 – My Ok In SONOBOL 2 spaces can be used, the purpose of 1st space is for _____ and 2nd for Pattern matching, String Concatenation String concatenation, Pattern matching Page # 35 & 36 – My Ok Which statement is correct about Table in SNOBOL? Table is indexed by number Table is indexed by the key Table can be indexed by both keys and numbers Table cannot be indexed Page# 43 – My Ok Which statement is correct about Table in SNOBOL? Table is indexed by number Table is indexed by the key value Table can be indexed by both keys and numbers Table cannot be indexed Page# 43 – My Ok The GOTO statement in SNOBOL is . Explicit pattern matched implicit an indirect reference. Click Here – My OK Which statement is true about SNOBOL? Its developers are computer experts Its developers have limited introduction with computer science Is an example of aspect programming languages Have many data types Page # 44 – My Ok SNOBOL is case_____. Sensitive In-Sensitive Super-Sensitive Not-Sensitive Page # 33 – My Ok SNOBOL is case ____ Sensitive InSensitive Super-Sensitive Not-Sensitive Page # 33 – My Ok SNOBOL was designed for______ purpose. String manipulation Al Business Scientific Page # 29 SNOBOL (1964) designed as a string manipulation language (at Bell Labs by Farber, Griswold, and Polensky). It had powerful operators for string pattern matching but suffered from poor readability and maintainability. Which of the following is used for indirect referencing in SNOBOL? Unary $ Binary S Unary & Binary & Page # 40 – My Ok Indirect referencing in SONOBOL is same as of _____in C. Arrays Pointers Aliasing Stack Page # 40 – My Ok SIZE () arid REPLACE () in SNOBOL4 are functions Primitive built-in user defined Both primitive and built-in Page # 41 – My Ok SIZE() and REPLACE() in SNOBOL4 are _________ functions Primitive built-in user defined both primitive and built-in Page # 41 – My Ok Control structure is a _________ statement If Else Switch Goto/Jump Statement For Loop Page # 44 – My Ok Which of the following is the only Control structure in SNOBOL? My Quiz 1 Go to Statement If Else statement Switch statement Both if else and switch statement Page # 44 – My Ok The space operator in SNOBOL has _____ precedence than arithmetic operators. Lower Higher Higher and Lower None of the given Page # 35 – My Ok The space operator has _____ precedence than arithmetic operators. Higher Lower Higher and Lower None of the given Page # 35 – My Ok SNOBOL stands for StriNg Oriented SymBOlic Language Binary operator in SNOBOL must has at least _____ spaces on both sides 1 2 3 4 Page # 34 – My Ok In SONOBAL binary operators have at least____ spaces 1 2 3 4 Note as Binary operator in SNOBOL must has at least one space on both sides so it would have at least 2 spaces in total Binary operator Binary operator in SONOBOL must has at least spaces on both sides. 1 2 3 5 Page # 34 – My Ok Maps in SNOBOL are also available in ____ C C++ MATLAB Prolog Check as not confirmed Ask from the instructor SNOBOL language questions ends here Today about 50 % coding is done in . BASIC C ADA Visual Basic Check as Not sure – Ask from the instructor The first-level elements in LISP are called _ level elements. First Index Top Priority Page # 64 – My Ok The first-level elements in LISP are called top-level elements. For example top elements of list (a b c) are a, b, and c. Similarly, top elements of list (a (b c)) are a and (b c).An empty list is represented by nil. It is the same as (). To write a user defined function in LISP we use _ . Setq Defun Def func Func Page # 69 – My Ok In LISP, defun is used to write a user-defined function. Note that different dialects of LISP may use different keywords for defining a function. The syntax of defun is as below:(defun func- name (arg-1 ... Arg-n) func-body) Function in LISP is in notation. Postfix Infix Prefix None of the given Page # 64 – My Ok Function in LISP is in notation. Postfix Infix Prefix None of the given Page # 64 – My Ok In LISP, a function and a function call is also a list. It uses prefix notation as shown below: (function-name arg1 ... argn) Dotime loop of LISP is similar in working to of Ada. while loop for loop switch statement Both while loop and switch statement Page # 72 – My Ok Dotimes loop of LIPS similar working to _______ ada For Switch loop Do while While Page # 72 – My Ok may also change global variable as a side effect. time LISP iteration list LISP iteration dolist LISP iteration dotime LISP iteration Lecture # 20 – Time 42 minute. – My Ok The first argument in LISP list is the List Function Argument Atom Page # 65 – My Ok The first argument in LISP list is the List Function Argument Symbol Page # 65 – My Ok The second argument in LISP list is the List S-Expression Argument Symbol Page # 65 – My Ok The 2nd argument in LISP list is the List S-Expression Argument Symbol Page # 65 – My Ok We have extensive use of ___ in LISP. For loop Switch statement Recursion AI Page # 63 – My Ok For Recursion it is necessary that a language Dynamic Static Both dynamic and static Stack Java has no . multiple inheritance struct enum type All of the Given Page # 29 – My Ok Which of the following is a language designed for distributed computing architecture? CORBA FORTRAN ADA LISP Click Here – My Ok __________ does not have a predefined inheritance hierarchy. ALGOL PROLOG C++ Ada Page # 48 – My Ok Record in Ada is similar to structure in C/C++. Record members in Ada is accessed through a/an____ (.)Dot operator operator None of the given Click Here – My Ok We may create our own exceptions in _ . C SNOBOL C++ Ada Click Here – My Ok But we can also create exception in C and Java too but there we have to create an exception class A language is reliable if during execution it does not create . Result Error Bytecode Malfunction My Ok If the program written in a particular language is less than the cost of failure of the system may be significant. Writable Reliable General Readable Page # 20 – My Ok Conditional control transfer" gave rise to the idea of which are blocks of code that can be reused over and over. Namespaces Header Files Objects Libraries Page # 21 – My Ok Identify the feature which was not available in FORTRAN-IV. support for structured programming logical IF statement support for explicit type declarations subprograms could also be passed as parameters Page # 25 – My Ok Identify the feature which was available in FORTRAN-IV. logical IF statement support for explicit type declarations subprograms could also be passed as parameters All of the given Page # 25 – My Ok The earliest form of a computer language was motion. Physical Logical Virtual Spiritual Page #21 – My Ok The first high level language is . FORTRAN Plankal kool Ada SNOBOL Page # 25 – My Ok Which of the given resulted in more complex software requiring support for software engineering in programming. Increasing Hardware cost only Increasing Software cost only Increasing Hardware cost and Decreasing Software Cost Increasing Software cost and Decreasing Hardware Cost Page # 30 – My Ok COBOL is mainly designed for .
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages32 Page
-
File Size-