Showing posts with label cbse net previous year question papers. Show all posts
Showing posts with label cbse net previous year question papers. Show all posts

Wednesday, August 26, 2020

UGC-NET Computer Science Previous Year Question Papers

UGC-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION 
CBSE-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION 

NTA-NET NOVEMBER 2017 QUESTIONS WITH EXPLANATION  

Q:4 Which of the following addressing mode is best suited to access elements of an array of contiguous memory locations ?

(A) Indexed addressing mode
(B) Base Register addressing mode
(C) Relative address mode
(D) Displacement mode


Answer: (A)

Explanation: Indexed addressing mode is best suited for accessing an array in contiguous memory location.
So, option (A) is correct.

Monday, February 20, 2017

C Programming Questions with Explanation

The following statement ::
     
               printf("%d",++5);
will print:

a)5  b) 6  c) error  d)garbage

Answer:: (C)

Explanation::

The statement will be expanded like
         5=5+1;
i.e. a constant on left side of expression which is not allowed in 'C' hence it will generate error.

Sunday, February 19, 2017

C Programming Questions with Explanation

Q:: What will the output of following?

           for(i=0;i<10;++i)
                   printf("%d",i&1);
(a)0101010101 (b)0111111111
(c)0000000000 (d)1111111111

Answer :: (A)
Explanation::

Binary representation of 1 is 0000000000000001 in 16 bit

In first iteration i=0

     i=0000000000000000
    1=0000000000000001
i&1=0000000000000000=(0)

In second iteration i=1

     i=0000000000000001
    1=0000000000000001
i&1=0000000000000001=(1)

In third iteration i=2

     i=0000000000000000
    1=0000000000000010
i&1=0000000000000000=(0)
In fourth iteration i=3

     i=0000000000000011
    1=0000000000000001
i&1=0000000000000001=(1)

So it will produce 0 when 'i' is even
and  '1' if 'i' is odd
Output will be 0101010101

Saturday, February 18, 2017

C Programming Questions with Explanation

Q:: What will be the output for following loop :->

for(putchar('c');putchar('a');putchar('r'))
{
                putchar('t');
}

 (a)error             (B)cartrt
(C)catrat            (D)catratratrat...

As per for loop execute

for(1. Initialization;2.Condition Check; 3. Iteration Variable change)

Now as per given question
1. Initialization is given by putchar('c)
2. Condition Check by putchar('a')
3. Iteration by putchar('r')

In for loop statement putchar('t') is there

Also sequence is 
1. Initialization only once putchar('c')
2. Condition check putchar('a')
3. Statement putchar('t')
4. Iteration putchar('r')
2. putchar('a')
3. putchar('t')
4. putchar('r')
2. putchar('a')
3. putchar('t')
.
.
.
and so on so result will catratratrat.... Infinite times

Saturday, December 10, 2016

UGC-NET JULY 2016 PAPER 2 QUESTIONS

UGC-NET JULY 2016 PAPER 2 QUESTIONS


Q::41. If S1 is total number of modules defined in the program architecture, S3 is the number of modules whose correct function depends on prior processing then the number of modules not dependent on prior processing is :

(1) 1 +S3/S1

(2) 1 –S3/S1

(3) 1 +S1/S3

(4) 1 –S1/S3

Answer::(2)

Q::42. The ________ model is preferred for software development when the requirements are not clear.

(1) Rapid Application Development

(2) Rational Unified Process

(3) Evolutionary Model

(4) Waterfall Model

Answer::(3)

Q::43. Which of the following is not included in waterfall model ?

(1) Requirement analysis                          (2) Risk analysis
(3) Design                                                 (4) Coding

Answer::(2)

Q::44.The cyclomatic complexity of a flow graph V(G), in terms of predicate nodes is :

(1) P + 1                               (2) P – 1
(3) P – 2                               (4) P + 2

Answer::(1)

Where P is number of predicate nodes in flow graph V(G).

Q::45. The extent to which a software tolerates the unexpected problems, is termed as :

(1) Accuracy                            (2) Reliability
(3) Correctness                        (4) Robustness

Answer::(4)

Q::46. An attacker sits between customer and Banker, and captures the information from the customer and retransmits to the banker by altering the information. This attack is called as
______.

(1) Masquerade Attack

(2) Replay Attack

(3) Passive Attack

(4) Denial of Service Attack

Answer::(2)

Q::47. Consider the following two statements :

(A) Business intelligence and Data warehousing is used for forecasting and Data mining.

(B) Business intelligence and Data warehousing is used for analysis of large volumes of sales data.

Which one of the following options is correct ?

(1) (A) is true, (B) is false.

(2) Both (A) and (B) are true.

(3) (A) is false, (B) is true.

(4) Both (A) and (B) are false.


Answer::(2)

Q::48. Pipelining improves performance by :

(1) decreasing instruction latency

(2) eliminating data hazards

(3) exploiting instruction level parallelism

(4) decreasing the cache miss rate

Answer::(3)

Q::49. Consider the following two statements :

(A) Data scrubling is a process to upgrade the quality of data, before it is moved into Data warehouse.

(B) Data scrubling is a process of rejecting data from data warehouse to create indexes.

Which one of the following options is correct ?

(1) (A) is true, (B) is false.

(2) (A) is false, (B) is true.

(3) Both (A) and (B) are false.

(4) Both (A) and (B) are true.

Answer::(1)

Q::50. Given the following statements :

(A) Strategic value of data mining is timestamping.

(B) Information collection is an expensive process in building an expert system.

Which of the following options is correct ?

(1) Both (A) and (B) are false.

(2) Both (A) and (B) are true.

(3) (A) is true, (B) is false.

(4) (A) is false, (B) is true.

Answer::(2)

                                                              
                                                       1 2 3 4 5 

UGC-NET JULY 2016 PAPER 2 QUESTIONS

UGC-NET JULY 2016 PAPER 2 QUESTIONS



Q::31.The number of strings of length 4 that are generated by the regular expression (0|∈)1+2* (3|∈), where | is an alternation character, {+, *} are quantification characters, and ∈ is the null string, is :

(1) 08                        (2) 10
(3) 11                        (4) 12

Answer::(4)

Q::32.The content of the accumulator after the execution of the following 8085 assembly language program, is :

MVI A, 42H
MVI B, 05H
UGC: ADD B
DCR B
JNZ UGC
ADI 25H
HLT

(1) 82 H                    (2) 78 H
(3) 76 H                    (4) 47 H

Answer::(3)

For Explanation Visit::
http://cbsenetmaterial.blogspot.in/2016/12/ugc-net-computer-science-july-2016_74.html

Q::33. In _______, the bodies of the two loops are merged together to form a single loop provided that they do not make any references to each other.

(1) Loop unrolling                       (2) Strength reduction
(3) Loop concatenation                (4) Loop jamming

Answer::(4)

Q::34. Which of the following is not typically a benefit of dynamic linking ?

I. Reduction in overall program execution time.

II. Reduction in overall space consumption in memory.

III. Reduction in overall space consumption on disk.

IV. Reduction in the cost of software updates.

(1) I and IV                             (2) I only
(3) II and III                           (4) IV only

Answer::(2)

Q::35. Which of the following is FALSE ?

(1) The grammar S → a Sb |bSa|SS|∈, where S is the only non-terminal symbol and ∈ is the null string, is ambiguous.

(2) SLR is powerful than LALR.

(3) An LL(1) parser is a top-down parser.

(4) YACC tool is an LALR(1) parser generator.

Answer::(2)

Q::36. Consider the reference string
                       
                       0 1 2 3 0 1 4 0 1 2 3 4

If FIFO page replacement algorithm is used, then the number of page faults with three page frames and four page frames are _______ and ______ respectively.

(1) 10, 9                                           (2) 9, 9
(3) 10, 10                                         (4) 9, 10

Answer::(4)

Q::37. Suppose there are four processes in execution with 12 instances of a Resource R in a system. The maximum need of each process and current allocation are given below :
Process Max.              Need Current              Allocation
         P1                           8                                 3
         P2                           9                                 4
         P3                           5                                 2
         P4                           3                                 1

With reference to current allocation, is system safe ? If so, what is the safe sequence ?

(1) No                                              (2) Yes, P1 P2 P3 P4
(3) Yes, P4 P3 P1 P2                           (4) Yes, P2 P1 P3 P4

Answer::(3)

Q::38. If the Disk head is located initially at track 32, find the number of disk moves required with FCFS scheduling criteria if the disk queue of I/O blocks requests are :
                        98, 37, 14, 124, 65, 67

(1) 320                                                 (2) 322
(3) 321                                                 (4) 319

Answer::(3)

Q::39. In UNIX, _________ creates three subdirectories : ‘PIS’ and two subdirectories ‘progs’ and ‘data’ from just created subdirectory ‘PIS’.

(1) mkdir PIS/progs PIS/data PIS

(2) mkdir PIS progs data

(3) mkdir PIS PIS/progs PIS/data

(4) mkdir PIS/progs data

Answer::(3)

Q::40. A scheduling Algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (lowest priority). The scheduler reevaluates the
process priority for every ‘T’ time units and decides next process to be scheduled. If the
process have no I/O operations and all arrive at time zero, then the scheduler implements
_________ criteria.

(1) Priority scheduling

(2) Round Robin Scheduling

(3) Shortest Job First

(4) FCFS

Answer::(2)

                                                           1 2 3 4 5 

UGC-NET JULY 2016 PAPER 2 QUESTIONS

UGC-NET JULY 2016 PAPER 2 QUESTIONS



Q::21. Consider the following binary search tree :

 If we remove the root node, which of the node from the left subtree will be the new root ?
(1) 11                               (2) 12
(3) 13                               (4) 16

Answer:: (4)

Q::22. Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e)

Which of the following statements is correct ?

(1) Underflow occurs

(2) Stack operations are performed smoothly

(3) Overflow occurs

(4) None of the above

Answer:: (2)

Q::23. Suppose you are given a binary tree with n nodes, such that each node has exactly either zero or two children. The maximum height of the tree will be

 (1)n/2–1                          (2)n/2+ 1
 (3) (n – 1)/2                    (4) (n + 1)/2

Answer::(3)

Q::24. Which of the following is not an inherent application of stack ?

(1) Implementation of recursion

(2) Evaluation of a postfix expression

(3) Job scheduling

(4) Reverse a string

Answer::(3)

Q::25. In how many ways can the string
                            A ∩ B – A ∩ B – A
 be fully parenthesized to yield an infix expression ?

(1) 15                  (2) 14
(3) 13                  (4) 12

Answer::(2)

Q::26. A multiplexer combines four 100-Kbps channels using a time slot of 2 bits. What is the bit rate ?

(1) 100 Kbps                    (2) 200 Kbps
(3) 400 Kbps                    (4) 1000 Kbps

Answer::(3)

Q::27. In a fully-connected mesh network with 10 computers, total ______ number of cables are required and ______ number of ports are required for each device.

(1) 40, 9                    (2) 45, 10
(3) 45, 9                    (4) 50, 10

Answer::(3)

Q::28. In TCP/IP Reference model, the job of _______ layer is to permit hosts to inject packets into any network and travel them independently to the destination.

(1) Physical                      (2) Transport
(3) Application                 (4) Host-to-network

Answer:: Marks to All

Q::29. If there are N people in the world and are using secret key encryption/decryption for privacy purpose, then number of secret keys required will be :

(1) N                                  (2) (N – 1)
(3) N(N – 1)/2                     (4) N(N + 1)/2

Answer::(3)

Q::30. Optical fiber uses reflection to guide light through a channel, in which angle of incidence is ________ the critical angle.

(1) equal to                               (2) less than
(3) greater than                        (4) less than or equal to

Answer::(3)

                                                           1 2 3 4 5 

UGC-NET JULY 2016 PAPER 2 QUESTIONS

UGC-NET JULY 2016 PAPER 2 QUESTIONS


Q::11. Given i = 0, j = 1, k = –1 x = 0.5, y = 0.0 What is the output of the following expression in C language ?
 x * y < i + j || k

 (1) – 1              (2) 0
 (3) 1                 (4) 2

Answer:: (3)

For Explanation Visit::
http://cbsenetmaterial.blogspot.in/2016/12/ugc-net-computer-science-july-2016_19.html

Q::12. The following statement in ‘C’ 
          int (*f())[ ];
declares?

(1) a function returning a pointer to an array of integers.
(2) a function returning an array of pointers to integers.
(3) array of functions returning pointers to integers.
(4) an illegal statement.

Answer:: (4)

Q::13. Which one of the following is correct, when a class grants friend status to another class ?

(1) The member functions of the class generating friendship can access the members of
the friend class.

(2) All member functions of the class granted friendship have unrestricted access to the
members of the class granting the friendship.

(3) Class friendship is reciprocal to each other.

(4) There is no such concept.

Answer:: (2)

Q::14. When a method in a subclass has the same name and type signatures as a method in the
superclass, then the method in the subclass _____ the method in the superclass.

(1) Overloads                           (2) Friendships
(3) Inherits                              (4) Overrides

Answer:: (4)

Q::15. What is the value returned by the function f given below when n = 100 ?
           int f (int n)
          { 
                 if (n = = 0) then 
                      return n;
                else
                      return n + f(n-2);
          }

(1) 2550                    (2) 2556
(3) 5220                    (4) 5520

Answer:: (1)

For Explanation Visit::
http://cbsenetmaterial.blogspot.in/2016/08/ugc-net-computer-science-july-2016_13.html

Q::16. In RDBMS, the constraint that no key attribute (column) may be NULL is referred to as :
(1) Referential integrity

(2) Multi-valued dependency

(3) Entity Integrity

(4) Functional dependency

Answer::(3)

Q::17. Which of the following statement(s) is/are FALSE in the context of Relational DBMS ?

 I. Views in a database system are important because they help with access control by allowing users to see only a particular subset of the data in the database.

II. E-R diagrams are useful to logically model concepts.

III. An update anomaly is when it is not possible to store information unless some other, unrelated information is stored as well.

IV. SQL is a procedural language.

(1) I and IV only                      (2) III and IV only

(3) I, II and III only                (4) II, III and IV only

Answer:: (4)

Q::18. In a relational database model, NULL values can be used for all but which one of the following ?

(1) To allow duplicate tuples in the table by filling the primary key column(s) with NULL.

(2) To avoid confusion with actual legitimate data values like 0 (zero) for integer columns and ’’ (the empty string) for string columns.

(3) To leave columns in a tuple marked as ’’unknown’’ when the actual value is unknown.

(4) To fill a column in a tuple when that column does not really ”exist” for that particular tuple.

Answer:: (3)

Q::19. Consider the following two commands C1 and C2 on the relation R from an SQL database :

C1 : drop table R;

C2 : delete from R;

Which of the following statements is TRUE ?

  I. Both C1 and C2 delete the schema for R.

 II. C2 retains relation R, but deletes all tuples in R.

III. C1 deletes not only all tuples of R, but also the schema for R.

(1) I only                           (2) I and II only
(3) II and III only             (4) I, II and III

Answer:: (3)

Q::20. Consider the following database table having A, B, C and D as its four attributes and four possible candidate keys (I, II, III and IV) for this table :
                                       A B C D
                                      a1 b1 c1 d1
                                      a2 b3 c3 d1
                                      a1 b2 c1 d2

I : {B}         II : {B, C}            III : {A, D}             IV : {C, D}

If different symbols stand for different values in the table (e.g., d1 is definitely not equal to d2), then which of the above could not be the candidate key for the database table ?

(1) I and III only                          (2) III and IV only

(3) II only                                     (4) I only


Answer:: (3)

                                                                     1 2 3 4 5 


Coding Acceleration Program

🚀 CODING ACCELERATION PROGRAM (90 DAYS) Build Strong Foundations Learn to Think Like a Programmer Get Placement Ready 💡 Learn C Progra...