Explore topic-wise MCQs in Mechanical Engineering.

This section includes 199 Mcqs, each offering curated multiple-choice questions to sharpen your Mechanical Engineering knowledge and support exam preparation. Choose a topic below to get started.

101.

A nested subprogram can be called from the main procedure or from the calling environment. True or False?

A. true
B. false
Answer» C.
102.

Subprograms and anonymous blocks can be called by other applications.

A. true
B. false
Answer» B. false
103.

What is the maximum number of ELSE clauses that can be included in an IF clause that is not nested?

A. 0
B. 1
C. 15
D. any number
Answer» C. 15
104.

The stepsqlite product is a PL/SQL compiler for the small database-------

A. javascript
B. java
C. mozilla firefox
D. sqlite
Answer» E.
105.

What is the maximum number of handlers processed before the PL/SQL block is exited when an exception occure?

A. only one
B. all that apply
C. all referanced
D. none
Answer» B. all that apply
106.

For which trigger timing can you reference the NEW and OLD qulaifires?

A. statement and row
B. statement only
C. row only
D. oracle forms trigger
Answer» E.
107.

What happens when rows are found using a FETCH statement

A. it causes the cursor to close
B. it causes cursor to open
C. it loads the current row values into variables
D. none of the above
Answer» C. it loads the current row values into variables
108.

The command used to open a CURSOR FOR loop is

A. open
B. fetch
C. parse
D. none of the above
Answer» E.
109.

Which of the following statement will produce an error?

A. cursor action_cursor is
B. select name,rate,action
C. into action_record
D. none of the above
Answer» D. none of the above
110.

In left out,which of the following would be cuase an infinite loop occure in a simple loop?

A. loop
B. end loop
C. if_then
D. exit
Answer» C. if_then
111.

Which of the following are implicit cursor attributes?

A. %found
B. %too_many_rows
C. %notfound
D. %rowtype
Answer» D. %rowtype
112.

Which of the following is not a feature of a cursor FOR loop

A. record type declaration
B. opening and parsing of sql statement
C. fetches records from cursor
D. requires exit condition to be defined
Answer» C. fetches records from cursor
113.

Which of the following is true about implicit cursor?

A. implicit cursor are used for sql that are not named
B. developers should use implicit cursors with great care
C. implicit cursors are no longer a feature in oracle
D. none of above
Answer» B. developers should use implicit cursors with great care
114.

I is invariant predicate that satisfies condtion

A. i and b subset of asem (l,i)
B. i and not b subset of p
C. both a and b
D. none of above
Answer» D. none of above
115.

Function mem from the set of program identifiers ID to values

A. condition
B. predicate
C. function
D. state
Answer» E.
116.

Axiomatic semantics specifies each statement of a language in terms of asemis

A. predicate translation
B. predicate transformer
C. predicate q
D. none of this
Answer» C. predicate q
117.

Predicate W is called as

A. weakest precondition
B. weakest postcondition
C. both a & b
D. none of this
Answer» B. weakest postcondition
118.

Predicate Q can be return as

A. q=t and r;t=termination,r=truth of p
B. r=i
C. q=t
D. q=r
Answer» B. r=i
119.

Postcondition is

A. predicate p required to hold after execution of statement s
B. predicate q such that execution of s terminates & p holds upon termination
C. either a or b
D. both true
Answer» B. predicate q such that execution of s terminates & p holds upon termination
120.

EBNF is metalanguage

A. true
B. false
Answer» B. false
121.

Meta-language is

A. used to described other language
B. simple language
C. instruction set
D. none of this
Answer» B. simple language
122.

Syntax of ALGOL 60 was defined with

A. simply stating some rules in english
B. context-free grammar
C. simple language
D. no syntax
Answer» C. simple language
123.

The syntax of language id define by two sets…

A. lexical rules
B. syntactic rules
C. both a & b
D. none of this
Answer» D. none of this
124.

The full form of EBNF....

A. extended backus naur form
B. extended beginning normal form
C. extended best normal form
D. none of above
Answer» B. extended beginning normal form
125.

..... Syntax can only represent a rule in one line, whereas in.....a terminating character, the semicolon, marks and end of a rule.

A. ebnf, bnf
B. bnf,ebnf
C. all of above
D. none of these
Answer» C. all of above
126.

In a compiler.....checks every character of the source text.

A. the lexical analyzer.
B. the syntax analyzer.
C. the code generator.
D. the code optimizer.
Answer» B. the syntax analyzer.
127.

A program is viewed as a state machine by...........

A. algebraic semantics.
B. denotational semantics.
C. operational semantics.
D. axiomatic semantics.
Answer» E.
128.

Translation semantics are used in.......

A. interpreters
B. compilers
C. errors.
D. both a and b
Answer» C. errors.
129.

.....semantics are utilized when taking in a programming language and by compiler journalists.

A. algebraic semantics.
B. denotational semantics.
C. operational semantics.
D. axiomatic semantics.
Answer» D. axiomatic semantics.
130.

.........tell what is processed by giving a numerical question (function) which is the significance of the program.

A. algebraic semantics.
B. denotational semantics.
C. operational semantics.
D. axiomatic semantics.
Answer» C. operational semantics.
131.

The non-terminals symbol is defined with a transition diagram having......................

A. one entry and two exit edge
B. two entry and one exit edge
C. one entry and one exit edge
D. one entry and no exit edge
Answer» D. one entry and no exit edge
132.

Representation of Non-terminals is done by.... and....by boxes.

A. circles and terminate
B. line and terminate
C. circle and terminal
D. line and terminal
Answer» D. line and terminal
133.

........give another method for characterizing structure of Programming language.

A. syntax diagrams.
B. axiomatic and denotational approach.
C. context free grammar
D. all of these.
Answer» B. axiomatic and denotational approach.
134.

The language syntax is characterized by two arrangements of rules: ....... and.........

A. logical and syantax
B. lexical and syntactic
C. lexical and symmetric
D. none of these
Answer» C. lexical and symmetric
135.

Grammars are capable to describe the structure of ........and independent ........models.

A. language and computational
B. language and lexical
C. language and syntactic
D. none of above.
Answer» B. language and lexical
136.

The distinctin among ......and......standards is to same degree Subjective.

A. logical and syantax
B. lexical and symmetric
C. lexical and syntactic
D. none of these
Answer» D. none of these
137.

copy restore parameter passing method is used in___________.

A. c
B. pascal
C. ada
D. none of these
Answer» D. none of these
138.

call by name parameter passing method is used in___________.

A. c
B. pascal
C. algol
D. none of these
Answer» D. none of these
139.

Execution time languages can be classified are__________.

A. static languages
B. stack-based languages
C. fully dynamic languages
D. all of these
Answer» E.
140.

FORTRAN uses______________.

A. static allocation strategy
B. stack allocation strategy
C. heap allocation strategy
D. none of these
Answer» B. stack allocation strategy
141.

exception handling is for….

A. handling run time error
B. handling syntax error
C. handling logical error
D. all of these
Answer» B. handling syntax error
142.

which keyword is use to check exception?

A. thrown
B. try
C. catch
D. exception
Answer» D. exception
143.

exception is throw using the keyword ?

A. thrown
B. throw
C. throws
D. throwing
Answer» C. throws
144.

following is posted loop?

A. do while
B. for
C. if
D. while
Answer» B. for
145.

For defining interface in java --------- keyword is used?

A. interface
B. interface
C. inter
D. class_interface
Answer» C. inter
146.

during implicit conversion is it possible to

A. loss of information
B. sign can be lost
C. occure overlow
D. all of these
Answer» D. all of these
147.

which of the following is not data type in pascal?

A. real
B. float
C. double
D. struct
Answer» C. double
148.

chosse the incorrect statement

A. int a[]=new int[10]
B. int[] a=new int[10]
C. int a[]=int[10] new
D. all of these
Answer» D. all of these
149.

#include using namespace std; int main() { int a=10,b=20; a=a++; b=++b; cout <

A. 10 20
B. 11 20
C. 10 21
D. 11 21
Answer» D. 11 21
150.

What is the output of the following code? int main() { double x=1.2; int sum=(int)x + 1; printf("sum=%d",sum); return 0; }

A. 2.2
B. 2
C. 2
D. conversion from double to int is not possible
Answer» C. 2