ppl bits & questions form II mid

1. A Subprogram declaration provides the __ but not body,of the subprogram [ ]                                                                                                            
(A) definition (B) code (C) protocol (D) none
2. The caller is _______________during execution of the called subprogram               [ ]
(A) suspended (B) terminated (C) blocked (D) none
3. If local variables are stack-dynamic, advantage is _________________                    [ ]
(A) deallocation (B) allocation (C) indirect address (D) they support recursion
4. The period of time between an allocation and its subsequent disposal is called         [ ]
(A) life time (B) scope (C) binding (D) all
5. In java, object parameters are passed using                                                                 [ ]
(A) call-by-name (B) call-by-value (C) call-by-reference (D) call-by-result
6. Concurrency can occur at _______________level                                                      [ ]
(A) kernel (B) program (C) unit (D) data
7. _______________method, which kills the thread                                                       [ ]
(A) stop () (B) yield () (C) suspend () (D) start ()
8. Arra Inde Outof BoundsException is defined in _____________package                 [ ]
(A) java.applet (B) java.awt (C) java.util (D) java.lang
9. Languages based on symbolic logic are called ______________Programming languages                                                                                                                         [ ]
(A) imperative (B) functional (C) logical (D) structural
10. Haskell uses a different evaluation technique is called __________                        [ ]
(A) fast evaluation (B) early evaluation (C) lazy evaluation (D) quick evaluation
11. Parameters in subprogram header are called ____                                                    [ ]
A) Formal parameters B) Actual parameters
C) Local variables D) Global variables
12. The First high level language to include coroutines was _______                           [ ]
A) Pascal B) Ada C) Simula67 D) C++ 
13. The local variables are ________                                                                             [ ]
A) Stack dynamic B) Register C) Extern D) Global
14. The first language that has the support of data abstraction is _______                    [ ]
A) C B) C++ C) Simula67 D) Java
15. Encapsulating unit in Ada are called _______                                                         [ ]
A) Tasks B) Packages C) Classes D) Clusters
16. The first language introduced monitors was ______________                                [ ]
A) PL/1 B) ADA C) ALGOL 68 D) Concurrent Pascal
17. The ‘sema’ data type is available in ___________.                                                  [ ]
A) Ada B) Algol 68 C) PL/I D) C
18. The language that supports both functional and imperative languages is _______ [ ]
A) ML B) Haskell C) Ada D) PL/I
19. Example for logical programming language is                                                         [ ]
A) LISP B) ML C) HTML D) Prolog

20. The operating system LINUX was written in                                                           [ ]
A) B B) C C) Binary D) Assembly
 21) _______is the first part of the sub program definition.                                               [ ]
A) Subprogram header B) Subprogram Call C)Active D) none
22) Which modifier used in C# method to specify a formal parameter                          [ ]
A) New B) Def C) Params D) A&B
23) Variables defined inside the subprogram is called                                                    [ ]
A) Global variables B) Local Variables C) Parameter D)None
24) In Java restrictions are called                                                                                    [ ]
A) Boundaries B) Constraint C) Limit D) Bounds
25) An instance of abstract data type is called                                                                [ ]
A) Variable B) Object C) Value D) Constructor
26) The encapsulating constructs in Ada are called                                                        [ ]
A) Exceptions B) Interfaces C) Definitions D) Packages
27) An Exception raised in which construct                                                                    [ ]
A) Catch B) Throw C) Try D) None
28) ________ specifier is used to specify in a function that a variable that is used there defined else where                                                                                                [ ]
A)internal B) extern C) global D)A&C
29) Constructor is same as                                                                                               [ ]
A)Class name B) Function name C) Structure D) none
30) In PHP 2 integers are divided what is the out come                                                  [ ]
A)float B) Int C) char D) All

QUESTIONS:
UNIT-5
1)a.Explain difference between procedures and functions.
b.Explain two different ways that a non method subprogram can gain access to the data.
2)a.explain design issues of pointers?
b.what is named constant?what are the advantages of named constants?
3)what are subprograms?write advantages.Explain about different methods of parameter passing mechanisms to a subprogram?
4)Explain type checking technique in parameter passing method.
UNIT-6
1)Explain abstract data types in c# with examples?
2)Explain basic concepts of exception handling.and write design issues?
3)what are the two catqagories of concurrency?what is the need of studying concurrency?
4)what is a thread.explain how threads are implemented in java?
UNIT-7
1)Explain overview  of logic programming?
2)Explain exception handling in ML?
3)Explain exception handling in Ada?
4)write applications of logic programming?


No comments:

Post a Comment