CS508 – Modern Programming Languages: Midterm Important MCQs (222 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS508 Course Page · CS508 Subjective Pack (95 Q&As)
-
The design and evaluation of a particular --------------- is highly dependent on the domain in which it is to be used.
Topic: Language Evaluation Criteria
- Computer program
- Programming language ✓ Correct answer
- Database system
- Software design
-
The tools we use have a profound (and devious!) influence on our --------- --- habits and, on our thinking abilities.
Topic: Language Evaluation Criteria
- Seeing
- Listening
- Thinking ✓ Correct answer
- Feeling
-
Measure of ----------------- is considered as the cost of writing programs in a programming language.
Topic: Language Evaluation Criteria
- Readability
- Writability
- Reliability
- Productivity ✓ Correct answer
-
--------- are a type of Aliasing.
Topic: Language Evaluation Criteria
- Pointers ✓ Correct answer
- Parameters
- Arrays
- Linked List
-
Some languages allow special keywords for signaling the start and end of a construct, making it more -------------- and less prone to errors.
Topic: Language Evaluation Criteria
- Readable ✓ Correct answer
- Writable
- Listenable
- Watchable
-
One is limited in his/her ---------------- by the tools used to express his/her ideas.
Topic: Language Evaluation Criteria
- Speaking
- Thinking ✓ Correct answer
- Listing
- Writing
-
16-23 function points show that language level is --------------
Topic: Language Evaluation Criteria
- 16-23 ✓ Correct answer
- 4-8
- 9-15
- 1-3
-
An understanding of implementation issues leads to a/an ____ of why languages are designed the way they are.
Topic: Language Evaluation Criteria
- Uncertainty
- Understanding ✓ Correct answer
- Misunderstanding
- Confusion
-
____ is/are harmful as far as readability is concerned.
Topic: Language Evaluation Criteria
- Overloading ✓ Correct answer
- Orthogonality
- Statements like Break or Continue
- Case statement
-
A language that can be used for a wide domain of applications has higher ____.
Topic: Language Evaluation Criteria
- Portability
- Generality ✓ Correct answer
- Reliability
- Readability
-
A language is reliable if during execution it does not create _____.
Topic: Language Evaluation Criteria
- Result
- Error ✓ Correct answer
- Bytecode
- Malfunction
-
If the program written in a particular language is less ___ than the cost of failure of the system may be significant.
Topic: Language Evaluation Criteria
- Writable
- Reliable ✓ Correct answer
- General
- Readable
-
The portability has direct relation with ____.
Topic: Language Evaluation Criteria
- Simplicity
- Readability
- Generalization
- Standardization ✓ Correct answer
-
Following factors influences a portable language design EXCEPT
Topic: Language Evaluation Criteria
- Computer architecture
- Readability
- Programmer's time
- Windows XP ✓ Correct answer
-
______ 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.
Topic: Language Evaluation Criteria
- Readability ✓ Correct answer
- Writability
- Orthogonality
- Portability
-
A language that is more orthogonal is usually more ___.
Topic: Language Evaluation Criteria
- Readable ✓ Correct answer
- Writable
- Portable
- Reliable
-
Following are some of the reasons for studying concepts related to different programming languages EXCEPT
Topic: Language Evaluation Criteria
- Increased ability to learn new languages
- Increased capability to design communication links ✓ Correct answer
- Increased ability to design new languages
- Increased capacity to express programming concepts
-
Learning the implementation details of a language helps the programmer in…
Topic: Language Evaluation Criteria
- Finding bugs
- Fixing bugs
- Both finding and fixing bugs ✓ Correct answer
- Neither finding nor fixing bugs
-
Learning curve is _____ proportional to the number of basic components.
Topic: Language Evaluation Criteria
- Directly ✓ Correct answer
- Indirectly
- both directly and indirectly
- neither directly nor indirectly
-
A language evaluation criteria includes following factors EXCEPT
Topic: Language Evaluation Criteria
- Readability
- Writability
- Portability
- Modularity ✓ Correct answer
-
Learning different programming languages helps in increasing the ____ to express programming concepts
Topic: Language Evaluation Criteria
- Range
- Volume
- Capacity ✓ Correct answer
- Level
-
Which of the following is an incorrect option from the following statements regarding „objectives of learning new languages'?
Topic: Language Evaluation Criteria
- Help to compare different languages.
- Help in transition from one language to other language.
- Help in understanding the language piracy policy. ✓ Correct answer
- Help to choose a language for development of a certain application.
-
If a language become very simple then it will _____.
Topic: Language Evaluation Criteria
- increase readability
- increase writability ✓ Correct answer
- increase readability and decrease writability
- decrease both readability and writability
-
Reliability of a language addresses following concepts/ factors EXCEPT
Topic: Language Evaluation Criteria
- Type checking
- Array bounds checking
- Exception handling
- Language development environment ✓ Correct answer
-
Operator overloading ____ Writability but Readability is affected.
Topic: Language Evaluation Criteria
- Decreases ✓ Correct answer
- Increases
- Has no affect on
- Stabilizes
-
____ is not good as far as reliability of a language is concerned.
Topic: Language Evaluation Criteria
- Orthogonality
- Readability
- Writability
- Aliasing ✓ Correct answer
-
In writability context, the degree of abstraction is directly related to the __________.
Topic: Language Evaluation Criteria
- Reliability
- Expressiveness ✓ Correct answer
- Generality
- Orthogonality
-
The range of software development thought process can be ____________ by learning new languages as those constructs can be simulated.
Topic: Language Evaluation Criteria
- Unidentified
- Remain same
- Increased ✓ Correct answer
- Decreased
-
---------- was designed primarily for system simulation.
Topic: Language History & Paradigms
- APL
- SNOBOL
- Pascal
- Simula ✓ Correct answer
-
“Everything for everybody” was the motive of the language.
Topic: Language History & Paradigms
- COBOL
- LISP
- PL/1 ✓ Correct answer
- JAVA
-
The first programming language was ----------- developed by Zuse in isolation.
Topic: Language History & Paradigms
- Ada
- Algol
- PL1
- Plankalkul ✓ Correct answer
-
--------------- was considered good for describing algorithms.
Topic: Language History & Paradigms
- FORTRAN
- ALGOL ✓ Correct answer
- LISP
- Ada
-
-------------------- was developed at Bell Labs by Stroustrup. It evolved from C and SIMULA 67.
Topic: Language History & Paradigms
- C#
- C++ ✓ Correct answer
- Java
- Smalltalk
-
The first programming language to support Recursion was-------------.
Topic: Language History & Paradigms
- ADA
- LISP ✓ Correct answer
- FORTRAN
- COBOL
-
------------- was developed at Sun in the early 1990s and is based on C++.
Topic: Language History & Paradigms
- C#
- Java ✓ Correct answer
- Pascal
- Smaltalk
-
---------- was the era when programming language design took an empirical approach.
Topic: Language History & Paradigms
- 1940s
- 1950s ✓ Correct answer
- 1960s
- 1970s
-
“Conditional control transfer” gave rise to the idea of ---------- which are blocks of code that can be reused over and over.
Topic: Language History & Paradigms
- Namespace
- Header Files
- Libraries ✓ Correct answer
- Objects
-
--------------- was the first object oriented language.
Topic: Language History & Paradigms
- JAVA
- LISP
- COBOL
- SIMULA ✓ Correct answer
-
The declarative language among the following is:
Topic: Language History & Paradigms
- PROLOG ✓ Correct answer
- PASCAL GROUP
- C++
- C
-
The block structure feature of ALGOL60 has ____ scope.
Topic: Language History & Paradigms
- No
- Local ✓ Correct answer
- Universal
- Global
-
____ operations must have one of its parameters of the tagged type.
Topic: Language History & Paradigms
- Concurrent
- Synchronized
- Primitive ✓ Correct answer
- Generic
-
Imperative programming languages are the direct result of ____.
Topic: Language History & Paradigms
- Charles Babbage engine
- Logic or list program languages.
- Von Neumann architecture ✓ Correct answer
- Language application domain
-
Which statement is true from programming language evolution perspective about 1970's era?
Topic: Language History & Paradigms
- Analysis and elaboration era
- Era of effective software technology ✓ Correct answer
- Era of object oriented programming languages
- Era of discovery and description
-
____does not have a predefined inheritance hierarchy.
Topic: Language History & Paradigms
- ALGOL
- PROLOG
- C++
- Ada ✓ Correct answer
-
Identify the feature which was not available in FORTRAN-IV.
Topic: Language History & Paradigms
- support for structured programming ✓ Correct answer
- logical IF statement
- support for explicit type declarations
- subprograms could also be passed as parameters
-
____ programming language is known as “Write-Only” language.
Topic: Language History & Paradigms
- FORTRAN
- BASIC
- PL/1
- APL ✓ Correct answer
-
The earliest form of a computer language was __ motion.
Topic: Language History & Paradigms
- Physical ✓ Correct answer
- Logical
- Virtual
- Spiritual
-
______ is The First High Level Language
Topic: Language History & Paradigms
- FORTAN ✓ Correct answer
- Ada
- Plankal kül
- LISP
-
First language that provided the concept of Pointer data type was ____.
Topic: Language History & Paradigms
- COBOL
- LISP
- PL/1 ✓ Correct answer
- JAVA
-
First electronic computer was
Topic: Language History & Paradigms
- ENIAC ✓ Correct answer
- Baggage Analytical Engine
- Intel 386
- IBM x86
-
Following are object oriented programming languages EXCEPT
Topic: Language History & Paradigms
- C++
- JAVA
- LISP ✓ Correct answer
- C#
-
Following are imperative languages EXCEPT
Topic: Language History & Paradigms
- LISP ✓ Correct answer
- C
- FORTRAN
- PASCAL
-
PROLOG represent paradigm.
Topic: Language History & Paradigms
- Declarative ✓ Correct answer
- Formal
- Functional
- Algorithmic
-
COBOL was the first language that brings the concept of _____
Topic: Language History & Paradigms
- Records ✓ Correct answer
- Structure
- Object
- Variable
-
Smalltalk was the first purest _____ language and pioneered graphical user interface.
Topic: Language History & Paradigms
- object oriented ✓ Correct answer
- structured
- procedural
- functional
-
The first high level language is ______.
Topic: Language History & Paradigms
- FORTRAN ✓ Correct answer
- Plankal kool
- Ada
- SNOBOL
-
______was the first step towards the complex languages of today.
Topic: Language History & Paradigms
- ENIAC
- Pascal
- A-0 Compiler
- Short Code language ✓ Correct answer
-
In which of the following style of programming, evaluation of expression is emphasized rather then execution of commands?
Topic: Language History & Paradigms
- Aspect-based Programming
- Generic Programming
- Functional Programmimg ✓ Correct answer
- Object-oriented Programmimg
-
___________ was designed by Niklaus Wirth in 1971.
Topic: Language History & Paradigms
- Pascal ✓ Correct answer
- Simula
- Java
- C
-
In earlier versions of FORTRAN, parameters were:
Topic: Language History & Paradigms
- Only 1 byte could pass
- Pass by Type
- Pass by Reference ✓ Correct answer
- Pass by Value
-
The property list in LISP is a substitute of ---------.
Topic: LISP
- C/C++ pointer
- C/C++ structure ✓ Correct answer
- Java interfaces
- Complier
-
Which of the following functions assigns value 5 to symbol y.?
Topic: LISP
- >(setq 5 y)
- >(setq.5.y)
- >(setq y 5) ✓ Correct answer
- >(setq.y.5)
-
To implement a counter-controlled loop in LISP. Which of the following statement is used?
Topic: LISP
- listLoop
- iterate
- defun
- dotimes ✓ Correct answer
-
LISP stand for List ---------- Language.
Topic: LISP
- Professional
- Programming
- Processing ✓ Correct answer
- Procedure
-
LISP was the first programming language that introduced the concept of - ---------------.
Topic: LISP
- Pointers
- Arrays
- Dynamic typing ✓ Correct answer
- Trees
-
“do time” loop of LISP is similar in working to --------------- of Ada.
Topic: LISP
- Switch statement
- While loop
- If-else statement
- For loop ✓ Correct answer
-
The function that is used to remove all properties of a symbol in Lisp is:
Topic: LISP
- NULLP
- RAMOVE
- Terminate-all
- Remprop ✓ Correct answer
-
The first-level elements in LISP are called ___ level elements.
Topic: LISP
- First
- Index
- Top ✓ Correct answer
- Priority
-
To write a user defined function in LISP we use ____.
Topic: LISP
- Setq
- Defun ✓ Correct answer
- Def func
- func
-
The first argument in LISP list is the __
Topic: LISP
- list
- function
- argument
- atom ✓ Correct answer
-
Function in LISP is in _____notation.
Topic: LISP
- postfix
- infix
- prefix ✓ Correct answer
- none of the given
-
____ may also change global variable as a side effect.
Topic: LISP
- time LISP iteration
- list LISP iteration
- dolist LISP iteration ✓ Correct answer
- dotime LISP iteration
-
We have extensive use of ____ in LISP.
Topic: LISP
- for loop
- switch statement
- recursion ✓ Correct answer
- AI
-
LISP was basically developed to solve _____ problems.
Topic: LISP
- Artificial intelligence ✓ Correct answer
- Accounting
- Scientific
- Business
-
In _____ we shape the program as a function.
Topic: LISP
- SNOBOL
- LISP ✓ Correct answer
- ALGOL
- C
-
Which of the following is used in LISP to forbid the evaluation of a symbol?
Topic: LISP
- Space
- Quote ✓ Correct answer
- Hyphen
- Double quote
-
Function in LISP is itself a --------------------.
Topic: LISP
- Obejct
- Datatype
- List ✓ Correct answer
- Variable
-
How meny time the following loop in LISP will be executed? (dotimes (count n result) Body )
Topic: LISP
- n ✓ Correct answer
- n+1
- n-1
- n/2
-
In LISP, ___________ is the main tool used for iteration.
Topic: LISP
- For Loop
- Recursion ✓ Correct answer
- Do-While Loop
- While Loop
-
In LISP. Following statement returns the difference of the two lists.
Topic: LISP
- (L1 difference L2)
- (set-difference L1 L2) ✓ Correct answer
- ( Difference L1 L2)
- (L1 Difference L2)
-
What will be the result of following function call in LISP?
Topic: LISP
- >(/7.02)
- 3.5 ✓ Correct answer
- 7/2
- 7.02
-
List Item can be Iterated over using _____ statement in LISP.
Topic: LISP
- Dolist ✓ Correct answer
- Iterate
- Ilist
- Looplist
-
Which of the following statement of LISP generate an error?
Topic: LISP
- >(+(/35)4)
- >(setqx3.0) ✓ Correct answer
- >(sqrtx)
- >(+(sqrt4)4.0
-
Which of the following is an invailid symbol in LISP?
Topic: LISP
- Testsymbol ✓ Correct answer
- Test symbol
- Test-symbol
- Test_symbol
-
What will be the top element of the following list in LISP?
Topic: LISP
- (XX YY(X,Y,Z))
- XX and YY ✓ Correct answer
- X,Y,Z
- XX only
-
Which of the following is a correct if-statement in LISP?
Topic: LISP
- If (66 score < ) 'High
- If (66 score > ) 'High
- If (< score 66 ) 'High ✓ Correct answer
- If ( score 66< ) 'High
-
In LISP , an empty list represented by nil is the same as
Topic: LISP
- {}
- () ✓ Correct answer
- 0
- <>
-
In LISP, if predicate is false then output will be:
Topic: LISP
- F
- NIL ✓ Correct answer
- T
- 0
-
A______________program has two types of elements: atoms and lists.
Topic: LISP
- Ada
- PROLOG
- LISP ✓ Correct answer
- C++
-
Two important version of LISP are______________.
Topic: LISP
- Commen lisp and defacto
- List and common lisp
- Scheme and common lisp ✓ Correct answer
- Scheme and atoms
-
__________ is a language for symbolic computation and its syntax is based on lambda calculus.
Topic: LISP
- MATLAB
- LISP ✓ Correct answer
- C
- ALGOL
-
Array elements can be accessed by using ________ function in LISP.
Topic: LISP
- getf
- access
- aref ✓ Correct answer
- linear-array
-
The symbols used for logical true and false in LISP are:
Topic: LISP
- Tr and Fr
- Y and N
- T and NIL ✓ Correct answer
- T and F
-
Which of the following operator is used for pattern matching in SNOBOL?
Topic: SNOBOL
- = (Equal)
- = (Not Equal)
- . (Dot)
- (Space) ✓ Correct answer
-
In SNOBOL we can create new pattern by --------- two or more patterns.
Topic: SNOBOL
- Matching
- Replacing
- Removing
- Concatenating ✓ Correct answer
-
Which of the following is not part of standard SNOBOL 4 statement structure?
Topic: SNOBOL
- Label
- END ✓ Correct answer
- Statement body
- Goto Field
-
What is maximum length of variable name in Snobol?
Topic: SNOBOL
- 16
- 32
- 64
- 120 ✓ Correct answer
-
Which of the following is considered as legal variable name in SNOBOL.
Topic: SNOBOL
- my.var ✓ Correct answer
- 1myvar
- _myvar
- .myvar
-
The only Control structure in SNOBOL is ----------------
Topic: SNOBOL
- For loop
- Go to statement ✓ Correct answer
- If Else statement
- Switch statement
-
SNOBOL stands for ----------------------- language.
Topic: SNOBOL
- String Oriented Symbolic ✓ Correct answer
- Structure Oriented Simple
- String Oriented Simple
- Structure Oriented Symbolic
-
One of the significant feature associated with SNOBOL is -----------
Topic: SNOBOL
- Performing arithmetic operation separately
- Mixing arithmetic and string operations ✓ Correct answer
- Explicit Variable declaration
- Allows String manipulation operation only
-
$ operator in SNOBOL is used as both a/an --------- and -------- operator.
Topic: SNOBOL
- Unary, external
- Internal, binary
- Unary, binary ✓ Correct answer
- external, internal
-
Using SNOBO L, the correct way to create a one-dimensional array of 7 elements with the lower index being 2 and the upper index being 8.
Topic: SNOBOL
- X=ARRAY('2;8')
- X=ARRAY('2:8') ✓ Correct answer
- X=ARRAY('2,8')
- X=ARRAY('2.8')
-
Variable name in SNOBOL may not be longer than ___.
Topic: SNOBOL
- 150 characters
- 250 characters
- 500 characters
- 120 characters ✓ Correct answer
-
If we have two spaces in SNOBOL the first is used for ___ and the second one for ____.
Topic: SNOBOL
- concatenation, pattern matching ✓ Correct answer
- immediate assignment, replacement
- pattern matching, concatenation
- as a whole assignment, immediate assignment.
-
Which statement is correct about Table in SNOBOL?
Topic: SNOBOL
- Table is indexed by number
- Table is indexed by the key ✓ Correct answer
- Table can be indexed by both keys and numbers
- Table cannot be indexed
-
Which of the following statement is Correct about SNOBOL?
Topic: SNOBOL
- Poor readability
- Good writability
- Poor readability and writability ✓ Correct answer
- Good readability
-
(.)Dot operator is a ____ in SNOBOL.
Topic: SNOBOL
- Reference pointer
- Unary operator
- Class pointer
- Binary operator ✓ Correct answer
-
The GOTO statement in SNOBOL is____.
Topic: SNOBOL
- explicit
- pattern matched
- implicit
- an indirect reference. ✓ Correct answer
-
Which statement is true about SNOBOL?
Topic: SNOBOL
- Its developers are computer experts
- Its developers have limited introduction with computer science ✓ Correct answer
- Is an example of aspect programming languages
- Have many data types
-
SONOBOL is case ___
Topic: SNOBOL
- Sensitive
- In-Sensitive ✓ Correct answer
- Super-Sensitive
- Not-Sensitive
-
+ Sign is used for ___ in SONOBOL
Topic: SNOBOL
- Line Continuation ✓ Correct answer
- Line Breakage
- Body of the program
- Immediate assignment
-
': ' sign in program written in SNOBOL is used to show the ___.
Topic: SNOBOL
- Line continuation
- Body of the program ✓ Correct answer
- Line breaking
- immediate assignment
-
Binary operator in SONOBOL must has at least _____ spaces on both sides.
Topic: SNOBOL
- 2
- 1 ✓ Correct answer
- 3
- 5
-
SNOBOL was designed for ___ purpose.
Topic: SNOBOL
- String manipulation ✓ Correct answer
- Al
- Business
- Scientific
-
A space is used as for ___ concatenation
Topic: SNOBOL
- Variable
- String
- Data Type
- Operator ✓ Correct answer
-
For immediate value assignment ____ sign is used.
Topic: SNOBOL
- %
- &
- $ ✓ Correct answer
- *
-
Which of the following is used for indirect referencing in SNOBOL?
Topic: SNOBOL
- Unary $ ✓ Correct answer
- Binary S
- Unary &
- Binary &
-
SIZE () arid REPLACE () in SNOBOL4 are ___ functions
Topic: SNOBOL
- Primitive ✓ Correct answer
- built-in
- user defined
- both primitive and built-in
-
____ operations in SNOBOL are right associative.
Topic: SNOBOL
- Unary
- Exponentiation ✓ Correct answer
- Multiplication
- Addition
-
____ is used in arithmetic expression in SNOBOL.
Topic: SNOBOL
- Space operator
- $ operator
- String ✓ Correct answer
- Character
-
We use _____ operator for indirect referencing in SNOBOL.
Topic: SNOBOL
- Unary dot(.)
- Unary $ ✓ Correct answer
- Binary dot(.)
- Binary $
-
Upon successful completion of pattern matching, the substring matched by the pattern is assigned to the variable as ________. (SNOBOL: Pattern . Variable)
Topic: SNOBOL
- Value ✓ Correct answer
- String
- Integer
- Real numbers
-
SIZE function in SNOBOL language is used to return the size of __________.
Topic: SNOBOL
- String ✓ Correct answer
- Operator
- Variable
- Keyword
-
The major issue with ____________ was that the developers had no or limited experience in software development.
Topic: SNOBOL
- SNOBOL ✓ Correct answer
- Java
- C++
- C#
-
Indirect referencing in SNOBOL is same as of _______ in C.
Topic: SNOBOL
- Stack
- Pointers ✓ Correct answer
- Arrays
- Aliasing
-
Which of the following is not a discrete type in ada.
Topic: Ada
- Integer type
- Modular type
- Character type
- String type ✓ Correct answer
-
A -------- is used to signify a potentially infinite loop in ada.
Topic: Ada
- Full loop
- Simple loop ✓ Correct answer
- Special loop
- Master loop
-
A loop in which condition is tested after executing the body of loop is called post-test loop. Which of the following post- test loop is not supported in Ada language?
Topic: Ada
- 'While' loop
- 'do while' loop ✓ Correct answer
- 'for' loop
- Infinite loop
-
The integrity of types is checked from all together in -------.
Topic: Ada
- SNOBOL
- Ada ✓ Correct answer
- Plankal Koll
- ALGOL
-
A 'break' statement in C-language is used to exit from loop structure. It's alternative in Ada language is:
Topic: Ada
- exit ✓ Correct answer
- Kill
- Terminate
- Breakif
-
Unlike C/C++, Ada can have ____ within functions/procedures.
Topic: Ada
- Objects
- Functions/procedures ✓ Correct answer
- Events
- Parameters
-
Function must have at least ____ return statement.
Topic: Ada
- Three
- Two
- One ✓ Correct answer
- Four
-
Record in Ada is similar to structure in C/C++. Record members in Ada is accessed through a/an____
Topic: Ada
- (.)Dot operator ✓ Correct answer
- None of the given
- both (->)arrow operator and (.)Dot operator
- (->)arrow operator
-
We may create our own exceptions in __.
Topic: Ada
- C
- SNOBOL
- C++
- Ada ✓ Correct answer
-
Ada 95 is the first internationally standardized _____ programming language.
Topic: Ada
- Structured
- Object-Oriented ✓ Correct answer
- Non-Structured
- Logical
-
Correct syntax of creating variable of a specific length in ada is:
Topic: Ada
- Some_string: String(1>20);
- Some_String: String(1..20); ✓ Correct answer
- Some_String: String(1:20);
- Some_String: String(1,20);
-
____________is the Modulus Operator in ADA programming language.
Topic: Ada
- Mod ✓ Correct answer
- %
- &
- Modulu
-
There are ________built in character types in Ada.
Topic: Ada
- Five
- Three
- One
- Two ✓ Correct answer
-
Using Ada, the correct way to declare a floating point type with 15 decimal digits of precision is____________.
Topic: Ada
- Type double in digit 15;
- Type double is digits 15; ✓ Correct answer
- Type double in digits 15;
- Type double is digit 15;
-
Data type in Ada can be extended through:
Topic: Ada
- Polymorphism
- Inheritance ✓ Correct answer
- Function
- Arrays
-
To terminate a simple loop in Ada , which of the following statement is used?
Topic: Ada
- Finish
- Break
- End
- Exit ✓ Correct answer
-
The correct syntax of 'For' loop in Ada is
Topic: Ada
- For variable in low_value_high _value loop_(Loop body) End loop; ✓ Correct answer
- For variable in low_value_high _value loop_(Loop body) End ;
-
In Ada language ___________ are used for encapsulation.
Topic: Ada
- Variables
- Packages ✓ Correct answer
- Functions
- Records
-
Exdensible type in Ada language are created through:
Topic: Ada
- Operator Overloading
- Tagged types ✓ Correct answer
- Dynamic programming
- Pckages
-
In Ada the correct way to declare aboolean type with value of false and true is ………….
Topic: Ada
- Type bolean is (False; true);
- Type bolean is (False: true);
- Type bolean is (False. true);
- Type bolean is (False, true); ✓ Correct answer
-
A function in Ada language can have:
Topic: Ada
- Only one 'return' statement
- Any number of 'return' statements ✓ Correct answer
- Maximum two'return'statement
- At-least three 'return' statements
-
If you want to assign a value 10 to a variable named 'Roll_No' In Ada language then which of the following is a correcr way to do that?
Topic: Ada
- Roll_No =10;
- Roll_No :10;
- Roll_No: =10; ✓ Correct answer
- Roll_No ->10;
-
Ada is a ………………. Language.
Topic: Ada
- Grammar free
- Poorly destgned
- Strongly typed ✓ Correct answer
- weakly typed
-
_____ is used to give comments in Ada language.
Topic: Ada
- /*
- */
- -- ✓ Correct answer
- //
-
Which of the following operator in Ada is used to check the non-equality of two operands?
Topic: Ada
- ==!
- !=
- /= ✓ Correct answer
- <>
-
The enum type of Ada language is different from the enum type of C language as no________ on Ada enumtype is performed.
Topic: Ada
- Arithmetic Operation ✓ Correct answer
- Relational Operation
- Boolean Operation
- logical Operation
-
Identify the correct syntax of 'while' loop in ada language:
Topic: Ada
- Loop while (conditional) _loop body End while; ✓ Correct answer
- while (conditional) _loop body End while;
- while (conditional) { _loop body } End while;
- while condition Loop _loop body
-
The list of parameters in Ada subprogram is separated by
Topic: Ada
- Colon
- Semicolon ✓ Correct answer
- Comma
- Dot
-
Discriminated records in Ada are like ___________types in c.
Topic: Ada
- Union ✓ Correct answer
- Set
- Intersection
- Join
-
In Ada the correct values of the following modular type are______________type M is mod 7;
Topic: Ada
- 1,2,3,4,5,6
- 0,1,2,3,4,5
- 1,2,3,4,5,6,7
- 0,1,2,3,4,5,6 ✓ Correct answer
-
Consider the following two statements written in Ada: Type Months is (January,February,march,April,may,June,July); Type monthly_Sales is array(Months) of Float; What is size of array named 'Monthly_Sales'?
Topic: Ada
- 2
- 8
- 3
- 7 ✓ Correct answer
-
Using Ada language, the correct way to declare an integer type with the lower value being 1 and the upper value being 100is__________
Topic: Ada
- Type Marks is range1;100;
- Type Marks is range1::100;
- Type Marks is range1..100; ✓ Correct answer
- Type Marks is range1,100;
-
A/An _____________ is a sequence of orderd enumeration literals in ada.
Topic: Ada
- String data type
- Struct type
- Float data type
- Enumeration type ✓ Correct answer
-
Each 'if' statement in Ada language must be terminated with corresponding.
Topic: Ada
- 'else' statement
- 'then' statement
- 'elsif' statement
- 'end if' statement ✓ Correct answer
-
We use tagged type in Ada for____________
Topic: Ada
- Inheritance ✓ Correct answer
- Encapsulation
- Abstraction
- Polymorphism
-
Block statement in Ada is very similar to a block in _______.
Topic: Ada
- SNOBOL
- C ✓ Correct answer
- FORTRAN
- Both SNOBOL and FORTRAN
-
Generics in Ada language allow parameterization of ____________.
Topic: Ada
- Subprograms ✓ Correct answer
- Programs
- Variables
- Objects
-
In Ada, the example of composite data type is ____________.
Topic: Ada
- integer
- char
- array ✓ Correct answer
- floating
-
A 'switch' statement in C-language is used for decision making. Its alternative in Ada language is:
Topic: Ada
- 'record' statement
- 'while' statement
- 'case' statement ✓ Correct answer
- 'for' statement
-
All of the following were main design goals of Ada language EXCEPT:
Topic: Ada
- Designing a portable language ✓ Correct answer
- Design language for the Department of Defence (USA)
- Avoid unintentional mistakes during programming
- Program reliability and maintenance
-
____________ is the Assignment Operator in ADA.
Topic: Ada
- =
- ==
- ->
- := ✓ Correct answer
-
Pascal language was popular in Colleges and universities to teach:
Topic: Mixed / Other Important MCQs
- Structured programming ✓ Correct answer
- Object Oriented programming
- Business programming
- Scripting language
-
In the Decimal fixed point type. The distance between values is implemented as a power of --------.
Topic: Mixed / Other Important MCQs
- 2
- 10 ✓ Correct answer
- 8
- 16
-
A query given to a PROLOG system:
Topic: Mixed / Other Important MCQs
- Is a pattern matching exercise ✓ Correct answer
- Cannot contain variables
- Is treated an object
- Does not involve database
-
If a language provides a feature of referencing a variable in more than one way then we say that the language provides--------.
Topic: Mixed / Other Important MCQs
- Data mining
- Reliability
- Aliasing ✓ Correct answer
- Orthogonality
-
PHP stands for ----------------------- Home Page.
Topic: Mixed / Other Important MCQs
- Public
- Private
- Personal ✓ Correct answer
- Protected
-
In the ordinary fixed point type, the distance between values is implemented as a power of ----------
Topic: Mixed / Other Important MCQs
- 16
- 10
- 2 ✓ Correct answer
- 8
-
Low level features are very important in a language if you want to work on -----------------
Topic: Mixed / Other Important MCQs
- Scientific Application
- Artificial Intelligence Application
- System programming ✓ Correct answer
- Functional Paradigm
-
C language was popular in students due to:
Topic: Mixed / Other Important MCQs
- Easy portability ✓ Correct answer
- Orthogonality
- Arithmetic decimal support
- Size of language
-
Disjunction in Prolog is through --------- and conjunction is through ------- ---
Topic: Mixed / Other Important MCQs
- Dot(.), OR
- OR, Dot(.)
- Coma(,), OR
- OR, coma(,) ✓ Correct answer
-
____ has an efficient use of processor and memory.
Topic: Mixed / Other Important MCQs
- Plankul Kool
- LISP
- CORBA
- C++ ✓ Correct answer
-
Today about 50 % coding is done in ____.
Topic: Mixed / Other Important MCQs
- BASIC
- C
- ADA
- Visual Basic ✓ Correct answer
-
Java has no____.
Topic: Mixed / Other Important MCQs
- multiple inheritance
- struct
- enum type
- All of the Given ✓ Correct answer
-
Which of the following is a language designed for distributed computing architecture?
Topic: Mixed / Other Important MCQs
- CORBA ✓ Correct answer
- FORTRAN
- ADA
- LISP
-
Which of the given resulted in more complex software requiring support for software engineering in the programming languages.
Topic: Mixed / Other Important MCQs
- increasing Hardware Cost only
- Decreasing Software Cost only
- increasing Hardware Cost and Decreasing Software Cost
- Decreasing Hardware Cost and increasing Software Cost ✓ Correct answer
-
COBOL is mainly designed for _____.
Topic: Mixed / Other Important MCQs
- Scientific experiments
- Business application ✓ Correct answer
- Al applications
- Publishing and writing algorithm
-
______ provide middle layer among browser and database.
Topic: Mixed / Other Important MCQs
- JavaScript
- PHP ✓ Correct answer
- C#
- SMALTALK
-
Two-dimensional arrays are stored column-wise (column major) in ______.
Topic: Mixed / Other Important MCQs
- ALGOL
- BASIC
- FORTRAN ✓ Correct answer
- C#
-
Which statement best suited for C programming language?
Topic: Mixed / Other Important MCQs
- String manipulation language
- First language to provide exception handling
- With powerful set of operators but poor type checking ✓ Correct answer
- Introduce the notion of class
-
The ability to create dynamic HTML documents was the primary objective of:
Topic: Mixed / Other Important MCQs
- SNOBOL
- Ada
- Java
- JavaScript ✓ Correct answer
-
The length of variable name supported by COBOL was __________ characters.
Topic: Mixed / Other Important MCQs
- 30 ✓ Correct answer
- 20
- 55
- 40
-
Which of following is not part of standard SNOBOL4 statement structure?
Topic: SNOBOL
- Label
- END ✓ Correct answer
- Statement body
- goto Field
-
With programming in __________ we state what and not how.
Topic: Mixed / Other Important MCQs
- Fortran
- Algol
- C#
- Prolog ✓ Correct answer
-
__________ has a pre-test version, but no post-test version of logically controlled loop.
Topic: Ada
- Java
- C
- C++
- Ada ✓ Correct answer
-
A predicate may have __________ or more arguments.
Topic: Mixed / Other Important MCQs
- Three
- Zero ✓ Correct answer
- One
- Two
-
In Ada all pointers are initialized to ____________.
Topic: Ada
- One
- Value
- Null ✓ Correct answer
- Zero
-
Space is used as an operator in ____________.
Topic: SNOBOL
- ADA
- ALGOL
- SNOBOL ✓ Correct answer
- PROLOG
-
Computer architecture has a major influence on the design of programming language.
Topic: Language Evaluation Criteria
- True ✓ Correct answer
- False
-
The variable name has profound effect on _______________.
Topic: Language Evaluation Criteria
- Readability ✓ Correct answer
- Writability
- Orthogonality
- Portability
-
In SONOBOL TABLES can be used in a manner similar to _______.
Topic: SNOBOL
- Array ✓ Correct answer
- Pointers
- Queue
- Struct
-
Programming Language is basically a tool for instructing a computer to perform specified set of task.
Topic: Language Evaluation Criteria
- True ✓ Correct answer
- False
-
Initial version of SONOBOL only supports __________ and string.
Topic: SNOBOL
- Digits
- Exponential Numbers
- Real Numbers
- Integer ✓ Correct answer
-
The space operator in SNOBOL has _____ precedence than arithmetic operators.
Topic: SNOBOL
- Lower ✓ Correct answer
- Higher
-
In SONOBOL can the size of the array be determined at run time.
Topic: SNOBOL
- Yes ✓ Correct answer
- No
-
Learning the implementation details of a language helps in the efficient use of that language.
Topic: Language Evaluation Criteria
- True ✓ Correct answer
- False
-
Too much Orthogonality reduces Readability.
Topic: Language Evaluation Criteria
- True ✓ Correct answer
- False
-
In SONOBOL 2 spaces can be used, the purpose of 1st space is for _____ and 2nd for
Topic: SNOBOL
- Pattern matching, String Concatenation
- String concatenation, Pattern matching ✓ Correct answer
-
Too much simplicity in language design can also cause problems.
Topic: Language Evaluation Criteria
- True ✓ Correct answer
- False
-
The more is the Simplicity of a language, the more it will always be readable.
Topic: Language Evaluation Criteria
- True
- False ✓ Correct answer
-
___________ represents the class of languages from functional paradigm.
Topic: Language History & Paradigms
- LISP ✓ Correct answer
- PROLOG
- Ada
- C++
-
___________ is an important feature of Ada language used in embedded systems and operating systems. It is used in managing parallel threads of controls.
Topic: Ada
- Packages
- Controls
- Tasking ✓ Correct answer
- Classes
-
The __________ of while loop in Ada is same as in C.
Topic: Ada
- Syntax
- Semantics ✓ Correct answer
- Algorithm
-
Lists can be constructed with the help of three basic functions which are ___________.
Topic: LISP
- scheme, common lisp and cons
- cons, append and scheme
- cons, list and append ✓ Correct answer
- list, atoms and append
-
__________helps in creating types of your own choice even numeric types can be created.
Topic: Ada
- Ada ✓ Correct answer
- LISP
- FORTRAN
- PROLOG
-
A concept similar to Classes in Ada is called _____.
Topic: Ada
- Packages ✓ Correct answer
- Structures
- Controls
- Abstract Data type
-
Ada DO NOT support post test loop like do-while loop.
Topic: Ada
- True ✓ Correct answer
- False
-
SNOBOL is case_____.
Topic: SNOBOL
- Sensitive
- In-Sensitive ✓ Correct answer
- Super-Sensitive
- Not-Sensitive
-
Which of the following is the only Control structure in SNOBOL?
Topic: SNOBOL
- Go to Statement ✓ Correct answer
- If Else statement
- Switch statement
- Both if else and switch statement
-
COBOL is mainly designed for __________.
Topic: Language History & Paradigms
- Scientific experiments
- Business application ✓ Correct answer
- Al applications
- Publishing and writing algorithm
-
We can have nested procedures in _________ language.
Topic: Ada
- C++
- Ada ✓ Correct answer
- C
- Prolog
-
_____ is more strongly typed language than _________.
Topic: Mixed / Other Important MCQs
- C++, C#
- C#, C++ ✓ Correct answer
- C++, Java
- None of the given
-
One of the major design goals of Ada was
Topic: Ada
- To make it difficult for developers to make mistakes ✓ Correct answer
- To help developers to code the software in lesser time
- To help develop an IDE for Ada
- To make testers to test Ada application easily
-
_____ has elaborated exception handling
Topic: Ada
- ADA ✓ Correct answer
- C++
- JAVA
- COBOL
-
___ has a powerful set of operators but poor type checking
Topic: Language History & Paradigms
- C ✓ Correct answer
- C++
- ADA
- LISP
-
The inference mechanism of PROLOG is based upon _____________.
Topic: Mixed / Other Important MCQs
- Forward chaining
- Propositional logic
- Back tracking ✓ Correct answer
- Recursion
-
Language with wide domain of application has higher_________
Topic: Language Evaluation Criteria
- Portability
- Generality ✓ Correct answer
- Reliability
- Readability