Concept of Programming Language Questions
Concept of Programming Language Questions
o Systems Programming
o Business Applications
o Scientific Applications
o Artificial Intelligence
2. Visual Basic language Genealogy is a combination of the characteristics of both .... languages.
o BASIC and C
3. Type checking is one of the characteristics that aid ... in programming languages.
o Reliability
o Readability
o Cost
o Writability
o Portability
o Simplicity
o Orthogonality
o Expressivity
o Orthogonality
o Readability
o Flexibility
o Functional
o Rule-based
o Markup
o Object-oriented
Concept of Programming Languages
7. ... programs are partially compiled to detect errors before interpretation.
o C
o Perl
o Pascal
o C++
o Instance variables
o Class variables
o Static variables
o Global variables
o Fortran95
o Fortran77
o Java
o C89
10. The range of values of variables and the set of operations that are defined for values is
determined by……
o type
o l-value
o r-value
o cell address
o compile time
o load time
o run time
o Readability
o writability
o reliability flexibility
Concept of Programming Languages
13. The advantage of using Dynamic Type Binding is ….
o flexibility
o simplicity
o reliability
o orthogonality
14. Global variables can be accessed in a function through the $GLOBALS array in … language
o C
o Java
o Pascal
o PHP
o COBOL
o C
o Java
o C++
16. The advantage of using Boolean data type as primitive data type is …
o writability
o reliability
o readability
o simplicity
o SNOBOL4
o C
o Java
o C++
18. The primitive ordinal types in Java include …. integer, char, Boolean
o String
o integer
o float
o short
Concept of Programming Languages
19. Enumeration type variables in …. language is coerced into integer types.
o Ada
o C#
o Java 5.0
o C++
o Flexibility
o writability
o readability
o reliability
o Systems Programming
o Business Applications
o Scientific Applications
o Artificial Intelligence
o LISP
o ML
o HASKELL
o Otherwise
o Expressivity
o Simplicity
o 9
o 6
o 5
o 4
26. The Language Evaluation Criteria in which programs can be moved from one implementation to
another is calle.....
o Cost
o Portability
o Generality
o Orthogonality
o Computer Architecture
o Computer Programming
o Design of algorithms
o Otherwise
o Prolog
o Fortran
o Java
o B and C
30. Fast translation and slow execution are the characteristics of ...... implementation systems
o Interpretation
o Hybrid
o Compilation
o Otherwise
Concept of Programming Languages
31. Length of names is not limited in ...... language.
o Fortran 95
o ADA
o Java
o B and C
32. All variable names that begin with @ are instance variables in .... language.
o RUBY
o PERL
o PHP
o PASCAL
o readability
o writability
o portability
o reliability
34. The user may have difficulty making up names, that are not reserved, in …...language.
o APL
o COBOL
o ADA
o PASCAL
35. The association between a variable and its type or value is called …
o Address
o scope
o value
o binding
o compile
o language design
o link
o run
Concept of Programming Languages
37. The disadvantage of implicit declarations is.
o writability
o reliability
o readability
o otherwise
o efficiency
o flexibility
o reliability
o otherwise
o Inefficiency
o reliability
o readability
o flexibility
o C++
o ADA
o Pascal
o JAVA
41. The …data type is almost always an exact reflection of the hardware.
o string
o int
o float
o B and C
o COBOL
o Pascal
o Java
o Python
Concept of Programming Languages
43. The advantage of using Boolean data type as primitive data type is ….
o writability
o reliability
o readability
o simplicity
o SNOBOL4
o PERL
o Java
o C++
o String
o Ada
o Perl
o Fortran
o Flexibility
o readability
o reliability
o B and C
47. A…... array is a multi-dimensional array has rows with varying number of elements.
o rectangular
o jagged
o heterogeneous
o Otherwise
o 2
o 3
o 4
o 5
Concept of Programming Languages
49. Subrange ordinal data types of aid to ….
o reliability
o readability
o writability
o Otherwise
o integer
o enumeration
o character
o B and C
51. Binding of subscript ranges and storage allocation is dynamic and can change any number of
times in ….
o Heap-dynamic
o Fixed heap-dynamic
o Stack-dynamic
o B and C
o Systems Programming
o Business Applications
o Scientific Applications
o D. Artificial Intelligence
o LISP
o ML
o HASKELL D. otherwise
Concept of Programming Languages
55. The characteristic of readability includes……
o Expressivity
o Simplicity
o Orthogonality
o D. B and C
o 9
o 6
o 5
o D. 4
o Cost
o Portability
o Generality
o D. Orthogonality
o 3
o 2
o 4
o D. 5
o 3rd
o 2nd
o 4th
o D. 1st
o 1990’s
o 1970’s
o 1980’s
o D. 1960’s
Concept of Programming Languages
61. The language which is not imperative is……
o Prolog
o C++
o java
o D. Fortran
o C
o APL
o JAVA
o D. PERL
o 2
o 4
o 3
o D. 5
o 4
o 5
o 6
o D. 3
o Interpretation
o Hybrid
o Compilation
o D. Otherwise
o Fortran 95
o C99
o Java
o D. C++
Concept of Programming Languages
67. All variable names must begin with dollar signs in …. language.
o RUBY
o PERL
o PHP
o D. PASCAL
o ADA
o C
o Java
o D. C++
69. The user may have difficulty making up names, that are not reserved, in …...language.
o APL
o COBOL
o ADA
o PASCAL
o 4
o 5
o 7
o 6
71. The range of values of variables and the set of operations that are defined for these values is
called …
o Address
o scope
o value
o type
o compile
o run
o writability
o reliability
o readability
o otherwise
74. Bounding variables to memory cells before execution begins and remains bound to the same
memory cell throughout execution is called …
o static
o dynamic
o fixed
o otherwise
o 5
o 4
o 6
o 3
o Inefficiency
o reliability
o readability
o flexibility
77. Searching declarations, first locally, then in increasingly larger enclosing scopes is called …
o Dynamic scoping
o lifetime
o bound time
o static scoping
o C++
o ADA
o Pascal JAVA
Concept of Programming Languages
79. Variable names that begin with @ in Ruby language is called …
o instance variables
o class variables
o static variables
o global variables
80. … language uses blocks for creating static scopes inside program units.
o C
o Pascal
o Java
o C#
81. In …. language, the scope of any variable declared in a block is the whole block, regardless of
the position of the declaration in the block.
o C#
o C++
o Pascal
o Fortran
82. Global variables can be accessed in a function through the $GLOBALS in … language.
o JAVA
o PHP
o PASCAL
o RUBY
o Readability
o writability
o reliability
o flexibility
84. The collection of all names that are visible in the statement is called……
o referencing environment
o static scoping
o descriptor
o data type
o scope
o otherwise
o Pascal
o Java
o Python
o COBOL
87. The advantage of using Boolean data type as primitive data type is …
o writability
o reliability
o readability
o simplicity
88. The Character String data type is primitive via the String class in …... Language.
o SNOBOL4
o PERL
o Java
o C++
o String
o ADA
o Perl
o Fortran
o Flexibility
o writability
o Orthogonality
o readability
Concept of Programming Languages
91. A…… array is a multi-dimensional array has rows with varying number of elements.
o rectangular
o jagged
o heterogeneous
o Otherwise
o Systems Programming
o Business Applications
o Scientific Applications
o Artificial Intelligence
o LISP
o ML
o HASKELL
o otherwise
o Expressivity
o Simplicity
o Orthogonality
o B and C
o 9
o 6
o 5
o 4
Concept of Programming Languages
97. Language Evaluation Criteria do not include……
o Cost
o Portability
o Generality
o Orthogonality
o 3
o 2
o 4
o 5
o 3rd
o 2nd
o 4th
o 1st
o 1990’s
o 1970’s
o 1980’s
o 1960’s
o Prolog
o C++
o java
o Fortran
o C
o APL
o JAVA
o PERL
Concept of Programming Languages
103. There are …… methods for implementing programming languages.
o 2
o 4
o 3
o 5
o 4
o 5
o 6
o 3
o Interpretation
o Hybrid
o Compilation
o Otherwise
106. The user may have difficulty making up names, that are not reserved, in …...language.
o API
o COBOL
o ADA
o PASCAL
107. The association between a variable and its type or value is called …
o Address
o scope
o value
o binding
o compile
o language design
o link
o run
Concept of Programming Languages
109. The disadvantage of implicit declarations is.
o writability
o reliability
o readability
o otherwise
o efficiency
o flexibility
o reliability
o otherwise
o Inefficiency
o reliability
o readability
o flexibility
o C++
o ADA
o Pascal
o JAVA
113. The …data type is almost always an exact reflection of the hardware.
o string
o int
o float
o B and C
o COBOL
o Pascal
o Java
o Python
Concept of Programming Languages
115. The advantage of using Boolean data type as primitive data type is …
o writability
o reliability
o readability
o simplicity
o SNOBOL4
o PERL
o Java
o C++
o String
o Ada
o Perl
o Fortran
o Flexibility
o readability
o reliability
o B and C
119. A…... array is a multi-dimensional array has rows with varying number of elements.
o rectangular
o jagged
o heterogeneous
o Otherwise
o 2
o 3
o 4
o 5
Concept of Programming Languages
121. Subrange ordinal data types of aid to…….
o reliability
o readability
o writability
o Otherwise
o integer
o enumeration
o character
o B and C
123. Binding of subscript ranges and storage allocation is dynamic and can change any
number of times in ….
o Heap-dynamic
o Fixed heap-dynamic
o Stack-dynamic
o B and C
o Heap-dynamic
o Fixed heap-dynamic
o fixed Stack-dynamic
o Otherwise
o C
o Java
o Python
o C++
o descriptor
o data type
o scope otherwise
Concept of Programming Languages
127. A …... language supports a complex type.
o COBOL
o Pascal
o Java
o Python
128. The advantage of using Boolean data type as primitive data type is …
o writability
o reliability
o readability
o simplicity
129. The Character String data type is primitive via the String class in …... Language.
o SNOBOL4
o PERL
o Java
o C++
o Flexibility
o readability
o reliability
o B and C
o String
o ADA
o Perl
o Fortran
o Systems Programming
o Business Applications
o Scientific Applications
o Artificial Intelligence
Concept of Programming Languages
133. The characteristic of readability excludes...
o Expressivity
o Simplicity
o Orthogonality
o Syntax Design
o 4
o 5
o 6
o 9
135. The language evaluation criteria in which programs can be moved from one
implementation to another is called ......
o Cost
o Portability
o Generality
o Orthogonality
o Flexibility
o Maintaining programs
o Orthogonally
o Readability
o Computer Architecture
o Computer Programming
o Design of algorithms
o Otherwise
o C
o Perl
o Pascal C++
Concept of Programming Languages
139. The language which is imperative is...
o Prolog
o C++
o Java
o B and C
o C
o Prolog
o LISP
o Scheme
o rule-based
o functional
o markup
o object-oriented
142. … is the form or structure of the expressions, statements, and program units.
o Syntax
o Semantics
o Structure
o Code
o Fortran 95
o C99
o Java
o C++
144. The range of values of variables and the set of operations that are defined for values is
determined by…
o type
o l-value
o Ruby
o Perl
o PHP
o Pascal
o ADA
o C
o Java
o C++
147. The user may have difficulty making up names, that are not reserved, in …
o APL
o COBOL
o Java
o C++
148. The association between a variable and its type or value is called ......
o Address
o Scope
o Value
o Binding
o compile
o language design
o link
o run
150. Binding a non-static local variable to a memory cell occurs at ... time.
o compile
o run
o link
o language design
Concept of Programming Languages
151. Bounding variables to memory cells before execution begins and remains bound to the
same memory cell throughout execution is called…
o static
o dynamic
o fixed
o otherwise
o C#
o F#
o C++
o ML
o stack dynamic
o static
o Python
o Prolog
o C++
o Fortran
155. Searching declarations, first locally, then in increasingly larger enclosing scopes is
called …
o Dynamic scoping
o lifetime
o bound time
o static scoping
o C++
o ADA
o Pascal JAVA
Concept of Programming Languages
157. In... language, the scope of any variable declared in a block is the whole block,
regardless of the position of the declaration in the block.
o C#
o C++
o Pascal
o Fortran
158. Global variables can be accessed in a function through the $GLOBALS in ... language.
o Java
o PHP
o Pascal
o Ruby
159. The collection of all names that are visible in the statement is calle..
o referencing environment
o static scoping
o dynamic scoping
o otherwise
o descriptor
o data type
o scope
o otherwise
161. .... array is a multi-dimensional array that has rows with varying number of elements.
o rectangular
o jagged
o heterogeneous
o Otherwise
o integer
o enumeration
o character B and C
Concept of Programming Languages
163. List comprehensions is used in ...... language.
o C
o Java
o Python
o C++
164. In Python, if the matrix definition: mat = [[1,2,3], [4,5,6], [7,8,9]], then
mat [1] [0:2] = .......
o [1,2]
o [4,5,6]
o [4,5]
o Otherwise
165. The common way for accessing multi-dimensional arrays in ...... language is column
major order.
o Perl
o Java
o Python
o Fortran
o Perl
o Ruby
o Pascal
o Otherwise
o Perl
o C++
o Python
o Ada
168. A ...... is a data type that is similar to a record, except that the elements are not name
o Tuple
o list
o slice Otherwise
Concept of Programming Languages
169. In Scheme language, CDR ' (A B C) return ......
o (A B)
o (C)
o (B C)
o Otherwise
o COBOL
o C
o Java
o C++
o Ada
o C#
o Java 5.0
o C++
Concept of Programming Languages
1. Java Language Genealogy is a combination of the characteristics of both C and SIMULA
languages. ✘ C++ and SIMULA
5. PROLOG is one of the functional languages while LISP is one of the imperative languages. ✘
6. The completeness and precision of the language's official definition is called generality. ✘
9. The attributes of a variable include the time during which it is bound to a particular memory cell. ✔
10. Binding a C static variable to a memory cell occurs at compile time. ✘ Load
11. The default mechanism for specifying types of variables through default conventions is called
explicit declaration. ✘ Implicit
12. If the context of the appearance of a variable determines its type, this is called type inference. ✔
13. The type error detection by the compiler is easy in Dynamic Type Binding. ✘
15. The non-primitive data types are those defined in terms of other data types. ✔
16. Some languages support complex types such as Java language. ✘ C99, Python, Fortran
17. The advantage of using the primitive data type, Decimal, is the accuracy. ✔
20. A heterogeneous array is supported by Ruby language. ✔ Python, Perl, JS, Ruby
26. Ruby uses eql? for equality relation operator that uses coercions. ✘ ==
27. The non-primitive data types are those defined in terms of other data types. ✔
Concept of Programming Languages
28. C99 language uses int type with 0 for false and nonzero for true. ✘ C89
29. Java language uses short-circuit evaluation for all types of Boolean operators. ✔
37. In Java and C#, only widening assignment coercions are done.✔
38. In the 1950's, all algorithms represented by flowcharts can be coded with only two-way selection
and pre logical loops. ✘ 1960
42. The syntax of switch-case statement in C, C#, Java, and JavaScript is the same. ✘ C++
43. The control expression in Java and C# languages must be Boolean type.✔
45. Break is used as an unconditional labeled exit in both Java and Perl languages. ✘ last in Perl
48. ADA language has an option to use short-circuit evaluation. ✔ not no Ruby, Perl, ML, F#
50. Writing the language definition to demand that operand evaluation order be fixed improves
compiler optimizations. ✘ Limit Compiler Optimization
53. RUBY language allows multiple-target multiple-source assignments. ✔ Perl, Ruby, Lua
54. In Java and C#, only widening assignment coercions are done. ✔
Concept of Programming Languages
55. else matches with the nearest previous if in Java language. ✔
56. The syntax of switch-case statement in C, C#, Java, and JavaScript is the same. ✘ C++
57. The control expression in Java and C# languages must be Boolean type. ✔
58. Break is used as an unconditional labeled exit in both Java and Perl languages. ✘ last in Perl
59. FORTRAN99 control statements were based directly on IBM 704 hardware. ✘ FORTRAN
62. The positional parameter in functions means that the name of the formal parameter to which an
actual parameter is to be bound is specified with the actual parameter. ✘ Keyword
63. In C++, default parameters must appear last because parameters are keyword associate. ✔
64. Procedures structurally resemble functions but are semantically modeled on mathematical
functions. ✘
65. The number of Semantic Models of Parameter Passing equals four. ✘ Three
66. Using in mode, the value of the actual parameter is used to initialize the corresponding formal
parameter. ✔
71. There are three types of Referencing Environment when parameters of functions are subprogram
Names. ✔
72. Deep binding of parameters, which are subprogram names, is the environment of the call
statement that enacts the passed subprogram. ✘ Shallow Binding
73. Two overloaded functions can have the same parameters in Ada language because the return type
of an overloaded function can be used to disambiguate calls. ✔
74. Ada subprograms can return any type except subprograms type. ✔
75. A static-scoped language that does not permit nested subprograms needs closures. ✘ Need
76. The first resume of a coroutine is to its beginning, but subsequent calls enter at the point just
before the last executed statement in the coroutine. ✘ Just After
77. All programming languages designed since 1970 support data abstraction. ✘
Concept of Programming Languages
78. An abstract data type is a user-defined data type that satisfies three conditions. ✘ Two
79. Reliability and modifiability are from the advantages of data abstractions. ✔
81. In Java, to provide access to private members to some unrelated units or functions, friend
functions or classes are used. ✘ in C++
82. Parameterized ADTs allow designing an ADT that can store some type elements. ✘ Any type
87. The positional parameter in functions means that the name of the formal parameter to which an
actual parameter is to be bound is specified with the actual parameter. ✘ Keyword
88. In C++, default parameters must appear last because parameters are keyword associate. ✔
89. Procedures structurally resemble functions but are semantically modeled on mathematical
functions. ✘
90. The number of Semantic Models of Parameter Passing equals four. ✘ Three
91. Using in mode, the value of the actual parameter is used to initialize the corresponding formal
parameter. ✔
96. There are three types of Referencing Environment when parameters of functions are subprogram
Names. ✔
97. Deep binding of parameters, which are subprogram names, is the environment of the call
statement that enacts the past subprogram. ✘ Shallow Binding
98. Two overloaded functions can have the same parameters in Ada language because the return type
of an overloaded function can be used to disambiguate calls. ✔
99. Ada subprograms can return any type except subprograms type. ✔
100. A static-scoped language that does not permit nested subprograms needs closures. ✘
Concept of Programming Languages
101. The first resume of a coroutine is to its beginning, but subsequent calls enter at the point just
before the last executed statement in the coroutine. ✘ Just After
102. In Java and C#, only widening assignment coercions are done. ✔
104. Variables can be hidden from a unit by having a closer variable with the same name. ✔
105. The default mechanism for specifying types of variables through default conventions is called
explicit declaration. ✘ Implicit
106. The non-primitive data types are those defined in terms of other data types. ✔
116. Break is used as an unconditional labeled exit in both Java and Perl languages. ✘ last Perl