Podcast
Questions and Answers
Ada discriminate types is similar to ______.
Ada discriminate types is similar to ______.
- C/C++ reference
- C/C++ union
- all of the given
- C/C++ pointer (correct)
The block structure feature of ALGOL60 has ______ scope.
The block structure feature of ALGOL60 has ______ scope.
- Local (correct)
- No
- Global
- Universal
In the Decimal fixed point type, the distance between values is implemented as a power of ______.
In the Decimal fixed point type, the distance between values is implemented as a power of ______.
- 16
- 10 (correct)
- 2
- 8
Function must have at least ______ return statement.
Function must have at least ______ return statement.
______ operations must have one of its parameters of the tagged type.
______ operations must have one of its parameters of the tagged type.
An understanding of implementation issues leads to a/an ______ of why languages are designed the way they are.
An understanding of implementation issues leads to a/an ______ of why languages are designed the way they are.
______ has an efficient use of processor and memory.
______ has an efficient use of processor and memory.
______ is/are harmful as far as readability is concerned.
______ is/are harmful as far as readability is concerned.
A language that can be used for a wide domain of applications has higher ______.
A language that can be used for a wide domain of applications has higher ______.
Which statement is true from programming language evolution perspective about 1970's era?
Which statement is true from programming language evolution perspective about 1970's era?
Variable name in SNOBOL may not be longer than ______.
Variable name in SNOBOL may not be longer than ______.
If we have two spaces in SNOBOL the first is used for ______ and the second one for ______.
If we have two spaces in SNOBOL the first is used for ______ and the second one for ______.
Today about 50% coding is done in ______.
Today about 50% coding is done in ______.
Which statement is correct about Table in SNOBOL?
Which statement is correct about Table in SNOBOL?
Which of the following statement is Correct about SNOBOL?
Which of the following statement is Correct about SNOBOL?
The first-level elements in LISP are called ______ level elements.
The first-level elements in LISP are called ______ level elements.
To write a user defined function in LISP we use ______.
To write a user defined function in LISP we use ______.
Dotime loop of LISP is similar in working to ______ of Ada.
Dotime loop of LISP is similar in working to ______ of Ada.
(.)Dot operator is a ______ in SNOBOL.
(.)Dot operator is a ______ in SNOBOL.
The GOTO statement in SNOBOL is ______.
The GOTO statement in SNOBOL is ______.
The first argument in LISP list is the ______.
The first argument in LISP list is the ______.
Function in LISP is in ______ notation.
Function in LISP is in ______ notation.
______ may also change global variable as a side effect.
______ may also change global variable as a side effect.
We have extensive use of ______ in LISP.
We have extensive use of ______ in LISP.
Java has no ______.
Java has no ______.
Which of the following is a language designed for distributed computing architecture?
Which of the following is a language designed for distributed computing architecture?
______ does not have a predefined inheritance hierarchy.
______ does not have a predefined inheritance hierarchy.
Record in Ada is similar to structure in C/C++. Record members in Ada is accessed through a/an ______.
Record in Ada is similar to structure in C/C++. Record members in Ada is accessed through a/an ______.
We may create our own exceptions in ______.
We may create our own exceptions in ______.
A language is reliable if during execution it does not create ______.
A language is reliable if during execution it does not create ______.
If the program written in a particular language is less ______ than the cost of failure of the system may be significant.
If the program written in a particular language is less ______ than the cost of failure of the system may be significant.
The portability has direct relation with ______.
The portability has direct relation with ______.
Conditional control transfer" gave rise to the idea of ______, which are blocks of code that can be reused over and over.
Conditional control transfer" gave rise to the idea of ______, which are blocks of code that can be reused over and over.
Identify the feature which was not available in FORTRAN-IV.
Identify the feature which was not available in FORTRAN-IV.
______ programming language is known as “Write-Only” language.
______ programming language is known as “Write-Only” language.
Which statement is true about SNOBOL?
Which statement is true about SNOBOL?
SONOBOL is case ______.
SONOBOL is case ______.
The earliest form of a computer language was ______ motion.
The earliest form of a computer language was ______ motion.
______ is The First High Level Language.
______ is The First High Level Language.
Following factors influences a portable language design EXCEPT ______.
Following factors influences a portable language design EXCEPT ______.
______ is concerned with maintenance and debugging this is a very important concern because if maintenance cost is reduced, the overall cost on the software will also be reduced.
______ is concerned with maintenance and debugging this is a very important concern because if maintenance cost is reduced, the overall cost on the software will also be reduced.
A language that is more orthogonal is usually more ______.
A language that is more orthogonal is usually more ______.
Which of the given resulted in more complex software requiring support for software engineering in the programming languages.
Which of the given resulted in more complex software requiring support for software engineering in the programming languages.
COBOL is mainly designed for ______.
COBOL is mainly designed for ______.
First language that provided the concept of Pointer data type was ______.
First language that provided the concept of Pointer data type was ______.
- Sign is used for ______ in SONOBOL.
- Sign is used for ______ in SONOBOL.
First electronic computer was ______.
First electronic computer was ______.
: Sign in program written in SONOBOL is used to show the ______.
: Sign in program written in SONOBOL is used to show the ______.
Following are some of the reasons for studying concepts related to different programming languages EXCEPT ______.
Following are some of the reasons for studying concepts related to different programming languages EXCEPT ______.
Following are object oriented programming languages EXCEPT ______.
Following are object oriented programming languages EXCEPT ______.
Following are imperative languages EXCEPT ______.
Following are imperative languages EXCEPT ______.
Learning the implementation details of a language helps the programmer in...
Learning the implementation details of a language helps the programmer in...
Learning curve is ______ proportional to the number of basic components.
Learning curve is ______ proportional to the number of basic components.
Binary operator in SONOBOL must has at least ______ spaces on both sides.
Binary operator in SONOBOL must has at least ______ spaces on both sides.
PROLOG represent ______ paradigm.
PROLOG represent ______ paradigm.
______ was the first object oriented language.
______ was the first object oriented language.
“Everything for everybody” was the motive of the language ______.
“Everything for everybody” was the motive of the language ______.
COBOL was the first language that brings the concept of ______.
COBOL was the first language that brings the concept of ______.
______ are a type of Aliasing.
______ are a type of Aliasing.
SNOBOL was designed for ______ purpose.
SNOBOL was designed for ______ purpose.
A space is used as for ______ concatenation.
A space is used as for ______ concatenation.
A language evaluation criteria includes following factors EXCEPT ______.
A language evaluation criteria includes following factors EXCEPT ______.
Learning different programming languages helps in increasing the ______ to express programming concepts.
Learning different programming languages helps in increasing the ______ to express programming concepts.
If a language provides a feature of referencing a variable in more than one way then we say that the language provides ______.
If a language provides a feature of referencing a variable in more than one way then we say that the language provides ______.
For immediate value assignment ______ sign is used.
For immediate value assignment ______ sign is used.
______ was considered good for describing algorithms.
______ was considered good for describing algorithms.
Which of the following is an incorrect option from the following statements regarding ‘objectives of learning new languages’?
Which of the following is an incorrect option from the following statements regarding ‘objectives of learning new languages’?
If a language become very simple then it will ______.
If a language become very simple then it will ______.
LISP was basically developed to solve ______ problems.
LISP was basically developed to solve ______ problems.
Smalltalk was the first purest ______ language and pioneered graphical user interface.
Smalltalk was the first purest ______ language and pioneered graphical user interface.
Which of the following is used for indirect referencing in SNOBOL?
Which of the following is used for indirect referencing in SNOBOL?
SIZE () arid REPLACE () in SNOBOL4 are ______ functions.
SIZE () arid REPLACE () in SNOBOL4 are ______ functions.
Which concept does NOT contribute to the reliability of a programming language?
Which concept does NOT contribute to the reliability of a programming language?
Which language serves as a middle layer between a web browser and a database?
Which language serves as a middle layer between a web browser and a database?
What is the only control structure available in SNOBOL?
What is the only control structure available in SNOBOL?
Which language stores two-dimensional arrays in a column-major order?
Which language stores two-dimensional arrays in a column-major order?
Which of the following was the first high-level programming language?
Which of the following was the first high-level programming language?
In the Ordinary fixed-point type, what is the power base used for the distance between values?
In the Ordinary fixed-point type, what is the power base used for the distance between values?
How does operator overloading generally affect the writability and readability of code?
How does operator overloading generally affect the writability and readability of code?
Which symbol is used in LISP to prevent the evaluation of a symbol?
Which symbol is used in LISP to prevent the evaluation of a symbol?
Unlike C/C++, Ada can have ______ within functions/procedures.
Unlike C/C++, Ada can have ______ within functions/procedures.
Imperative programming languages are the direct result of ______.
Imperative programming languages are the direct result of ______.
"Everything for everybody" was the motive of the language ______.
"Everything for everybody" was the motive of the language ______.
Flashcards
Ada discriminate types
Ada discriminate types
Similar to C/C++ unions, allowing a single variable to hold multiple types.
ALGOL60 block structure
ALGOL60 block structure
Provides local scopes for variables within functions/procedures.
Ada functions/procedures
Ada functions/procedures
Can contain objects and other functions/procedures unlike C/C++
Decimal fixed point
Decimal fixed point
Signup and view all the flashcards
Function return statement
Function return statement
Signup and view all the flashcards
Tagged type parameters
Tagged type parameters
Signup and view all the flashcards
Programming language design
Programming language design
Signup and view all the flashcards
Efficient processor/memory use
Efficient processor/memory use
Signup and view all the flashcards
Poor readability in a language
Poor readability in a language
Signup and view all the flashcards
Language generality
Language generality
Signup and view all the flashcards
Imperative programming languages
Imperative programming languages
Signup and view all the flashcards
SNOBOL variable length
SNOBOL variable length
Signup and view all the flashcards
SNOBOL string operations
SNOBOL string operations
Signup and view all the flashcards
SNOBOL table indexing
SNOBOL table indexing
Signup and view all the flashcards
LISP top-level elements
LISP top-level elements
Signup and view all the flashcards
LISP user-defined function
LISP user-defined function
Signup and view all the flashcards
LISP dotime
loop
LISP dotime
loop
Signup and view all the flashcards
SNOBOL dot operator
SNOBOL dot operator
Signup and view all the flashcards
SNOBOL GOTO statement
SNOBOL GOTO statement
Signup and view all the flashcards
LISP first list argument
LISP first list argument
Signup and view all the flashcards
LISP function notation
LISP function notation
Signup and view all the flashcards
LISP dolist
iteration
LISP dolist
iteration
Signup and view all the flashcards
LISP use of recursion
LISP use of recursion
Signup and view all the flashcards
Java lack of feature
Java lack of feature
Signup and view all the flashcards
Distributed computing language
Distributed computing language
Signup and view all the flashcards
Ada's lack of inheritance hierarchy
Ada's lack of inheritance hierarchy
Signup and view all the flashcards
Ada record access
Ada record access
Signup and view all the flashcards
Ada custom exceptions
Ada custom exceptions
Signup and view all the flashcards
Language Reliability
Language Reliability
Signup and view all the flashcards
Portability Relation
Portability Relation
Signup and view all the flashcards
What is reliability in a language?
What is reliability in a language?
Signup and view all the flashcards
Reliability factors EXCEPT
Reliability factors EXCEPT
Signup and view all the flashcards
Middle layer: Browser and database
Middle layer: Browser and database
Signup and view all the flashcards
SNOBOL's control structure
SNOBOL's control structure
Signup and view all the flashcards
Column-major storage
Column-major storage
Signup and view all the flashcards
First high-level language
First high-level language
Signup and view all the flashcards
First step towards complex languages
First step towards complex languages
Signup and view all the flashcards
Ada 95: Standardized language
Ada 95: Standardized language
Signup and view all the flashcards
Fixed-point distance
Fixed-point distance
Signup and view all the flashcards
Operator overloading: Readability
Operator overloading: Readability
Signup and view all the flashcards
Reliability: Bad factor
Reliability: Bad factor
Signup and view all the flashcards
C language statement
C language statement
Signup and view all the flashcards
SNOBOL right associative
SNOBOL right associative
Signup and view all the flashcards
SNOBOL arithmetic symbols
SNOBOL arithmetic symbols
Signup and view all the flashcards
SNOBOL indirect referencing
SNOBOL indirect referencing
Signup and view all the flashcards
Program shaping feature
Program shaping feature
Signup and view all the flashcards
LISP: First concept
LISP: First concept
Signup and view all the flashcards
Symbol evaluation in LISP
Symbol evaluation in LISP
Signup and view all the flashcards
Array bounds checking
Array bounds checking
Signup and view all the flashcards
Exception handling
Exception handling
Signup and view all the flashcards
Orthogonality: Language factor
Orthogonality: Language factor
Signup and view all the flashcards
Writability: Language factor
Writability: Language factor
Signup and view all the flashcards
Readability: Language factor
Readability: Language factor
Signup and view all the flashcards
SNOBOL operators: Associativity
SNOBOL operators: Associativity
Signup and view all the flashcards
LISP top-level elements: Definition
LISP top-level elements: Definition
Signup and view all the flashcards
LISP dolist
iteration: Side effects
LISP dolist
iteration: Side effects
Signup and view all the flashcards
What does NOT contribute to language reliability?
What does NOT contribute to language reliability?
Signup and view all the flashcards
PHP's Role
PHP's Role
Signup and view all the flashcards
SNOBOL's Control Flow
SNOBOL's Control Flow
Signup and view all the flashcards
First Step to Complex Languages
First Step to Complex Languages
Signup and view all the flashcards
Ada 95: Standardized
Ada 95: Standardized
Signup and view all the flashcards
Study Notes
Solved MCQs - CS508 Modern Programming
-
Discriminate Types (Question 1): Ada discriminate types are similar to C/C++ pointers.
-
ALGOL60 Block Structure (Question 2): The block structure feature of ALGOL60 has local scope.
-
Ada Features (Question 3): Unlike C/C++, Ada can have functions/procedures, objects, and events within functions/procedures, along with parameters.
-
Decimal Fixed Point (Question 4): In Decimal fixed point type, distance between values is implemented as a power of 2.
-
Function Return Statement (Question 5): Functions must have at least one return statement; procedures do not require return statements. The return statement's expression must match the function's declared return type.
-
Tagged Type Parameters (Question 6): Operations must have one of their parameters as the tagged type.
-
Understanding Implementation Issues (Question 7): Understanding implementation issues leads to a better understanding of why languages are designed the way they are.
Additional MCQs
-
Efficient Processor/Memory Use (Question 8): LISP has efficient use of processor and memory.
-
Readability Concerns (Question 9): Overloading, statements like break/continue, and case statements are harmful when readability is a concern.
-
High Generality (Question 10): A language used for a wide domain of applications has higher generality.
-
Imperative Language Origin (Question 11): Imperative programming languages are a direct result of Charles Babbage's engine (and subsequent architectures), logic and list program languages, and Von Neumann architecture.
-
SNOBOL Variable Length (Question 13): Variable names in SNOBOL may not exceed 120 characters.
-
SNOBOL Space Usage (Question 14): In SNOBOL, the first space is for concatenation and the second is for pattern matching operations.
-
Common Programming Language (Question 15): Today, about 50% of coding is in C.
-
Table Indexing (Question 16): Tables in SNOBOL can be indexed by number and/or key, or both.
-
SNOBOL Readability and Writability (Question 17): SNOBOL has poor readability but good writability.
-
LISP Top Level Elements (Question 18): The first-level elements in LISP are called top-level elements.
-
LISP User Defined Functions (Question 19): Use the
defun
keyword in LISP to write user-defined functions. -
LISP Loop Similarity (Question 20): LISP's do-time loop functions similarly to Ada's while loop statements.
-
SNOBOL Dot Operator (Question 21): The dot operator
(.)
is a unary operator in SNOBOL. -
SNOBOL GOTO (Question 22): The GOTO statement in SNOBOL is
implicit
. -
LISP List Element (Question 23): The
first
argument is the first element of a LISP list. A LISP list's first argument can be an atom or another LISP list. -
LISP Function Notation (Question 24): Functions in LISP are in prefix notation.
-
Global Variable Side Effects (Question 25): LISP may change global variables as a side effect.
-
LISP Extensive Use (Question 26): In LISP, we extensively use recursion.
-
Distributed Computing Language (Question 28): CORBA is designed for distributed computing architecture.
-
Ada Records (Question 30): Ada records are similar to C/C++ structures, accessed using the
(.)
dot operator. -
Exception Handling (Question 31): Ada supports creating your own exceptions.
-
Language Reliability (Question 32): A reliable language does not create errors during execution.
-
Portability Relation (Question 34): Portability is directly related to Readability & Simplicity
-
Conditional Control Transfer (Question 35): Conditional control transfer led to the concept of reusable code blocks.
-
FORTRAN-IV Features (Question 36): Procedural programming languages like FORTRAN-IV did not support features for structured programming, explicit data types or passing subprograms as parameters.
-
Language Character Limit (Question 37): The
maximum length
of a variable name in SNOBOL is 120 characters. -
SNOBOL Character Recognition (Question 38): SNoBOL developers are computer scientists by specialization/training.
-
SNOBOL Sensitivity (Question 39): SNOBOL is sensitive to the case of variable names (e.g., myVariable is different from myvariable).
-
Early Computer Language (Question 40): The earliest electronic computer language was physical.
-
First High-Level Language (Question 41): FORTRAN is the first High Level Language.
-
Portable Language Design Factors (Question 42): Factors influencing portablility are Computer Architecture, Readability, and required Programmer time.
-
Software Maintenance (Question 43): Windows XP is concerned with software maintenance concerns because reduced maintenance costs will reduce the overall software costs.
-
Orthogonal Language (Question 44): More orthogonal languages are usually more readable, writtable, and portable in usage.
-
Complex Software Requirements (Question 45): Increasing hardware cost and decreasing software costs led to more complex software requiring support for software engineering in programming languages.
-
Design Purpose of COBOL (Question 46): COBOL is typically designed for business applications.
-
Pointer Data Type Language (Question 47): PL/I was the first language that provided pointer data types.
-
SNOBOL Line Continuation (Question 48): A plus (+) sign is used for line continuation in SNOBOL.
-
Earliest Computer (Question 49): ENIAC was the first electronic computer.
-
SNOBOL Colon (Question 50): The colon (
:
) in SNOBOL is used to indicate line continuation. -
Programming Language Study Reasoning (Question 51): increased capability to learn new languages was a reason for the study of programming.
-
Programming Languages with Concepts(Question 52): C++, JAVA, and their derivatives are object oriented programming languages.
-
Importance of Implementation Details in Learning (Question 54): Learning implementation details helps a programmer to find and fix bugs.
-
Language Learning Curve (Question 55): The learning curve is directly proportional to the number of basic components of a language.
-
Binary Operator Spaces (Question 56): Binary operators in SNOBOL4 require at least two spaces on either side.
-
Programming Language Paradigm (Question 57): PROLOG uses a declarative approach as a programming paradigm.
-
First Object-Oriented Language (Question 58): Simula 67 was the first object oriented programming language.
-
Programming Language Motivation (Question 59): everything for everybody was the motive behind one language or programming philosophy's creation.
-
COBOL Data Structures (Question 60): COBOL introduced hierarchical data structures like records and nested selection statements.
-
Aliasing Mechanisms (Question 61): Pointers, arrays, and linked lists are associated with aliasing.
-
SNOBOL Purpose (Question 62): SNOBOL was designed for string manipulation.
-
SNOBOL Space Character use (Question 63): A space in SNOBOL was used for concatenation.
-
Software Evaluation Factors (Question 64): Portability, Writability, Readability, and Modularity (or a combination of multiple factors) affect evaluating programming language effectiveness.
-
Learning Multiple Languages (Question 65): Learning multiple programming languages improves capacity to express a programming concept.
-
Programming Language Multiple Referencing Variables (Question 66): A language that allows multiple ways to reference a variable is implementing an aliasing capability.
-
Immediate Assignment Sign (Question 67):
*
sign is typically used for immediate assignment operations. -
Algorithm Descriptive Language (Question 68): FORTRAN was good describing algorithms.
-
New Language Learning (Question 69): Helping to choose a language for a specific development application is a valid goal for understanding languages.
-
Simpler Language Qualities (Question 70): If a language is complex but simple to use, it is likely the readability will increase; if the language is too simple, the opposite may be true.
-
LISP Purpose (Question 71): LISP was primarily developed for Artificial Intelligence and related areas of study.
-
Smalltalk Language Focus (Question 72): Smalltalk was one of the first pure object-oriented programming languages.
-
Indirect Referencing in SNOBOL (Question 73): In SNOBOL, an indirect reference uses the
$
operator. -
SIZE/REPLACE Functions (Question 74):
SIZE
andREPLACE
functions are primitive functions in SNOBOL. -
Language Reliability Characteristics (Question 75): The concept of a robust language includes type checking, boundary checks, exception handling and a well-documented language development environment.
-
PHP and Other Scripting Languages (Question 76): in JavaScript is used as a middle-layer between a database and client-side applications, often in web browser contexts.
-
唯一控制结构 (Question 77): The only control structure in SNOBOL is the if-else statement.
-
Array Storage Order (Question 78): Two-dimensional arrays are typically stored column-wise in languages such as FORTRAN
-
First High-Level Language (Question 79): FORTRAN is considered to be the first high-level programming language.
-
**Meaningful Language Development (Question 80):**SNOBOL was important because it was one of the first steps towards the more complex languages we see today.
-
Standardized Language (Question 81): Ada 95 is a standardized programming language, and is an extension of its predecessor Ada 83.
-
Fixed Point Representation (Question 82): In ordinary fixed point types, the distance between values is implemented as a power of two.
-
Operator Overloading Impact (Question 83): Operator overloading can improve writability but decreases readability
-
Language Evaluation Factor (Question 84): Factors not related to language effectiveness that should not be used as evaluation criteria are orthogonal, readability, and writability, and aliasing (these factors are related to effectiveness and suitability).
-
C Programming Language Features (Question 85): C programming is a language related to string manipulation, provides exception handling, includes a comprehensive toolkit of operators, and does not use objects or classes.
-
SNOBOL Operators (Question 86): Unary and binary operations in SNOBOL are both right associative.
-
Arithmetic Language (Question 87): Space, string, character are the different arithmetic expression types (or operators) in SNOBOL.
-
Indirect Reference Operator (Question 88): The
.
(dot) operator is used for indirect referencing in SNOBOL. -
Program Function Structure (Question 89): LISP uses a structured approach to functional programming to represent program structure as functions.
-
Dynamic Typing (Question 90): LISP is one of the first programming languages that introduced the concept of dynamic typing, allowing flexible data types for variables.
-
Preventing Symbol Evaluation (Question 91): The
quote
symbol in LISP prevents a symbol from being evaluated immediately. -
Ada Composite Type (Question 92): Arrays are a composite data type in Ada.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.