Study Viral (Java Tutorials For Beginners - Step By Step)
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook Page
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET
Showing posts with label Operation System. Show all posts
Showing posts with label Operation System. Show all posts

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 60)

 November 23, 2018     Computer Science And Applications Paper-II, Operation System, UGC NET JULY 2018     No comments   

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 60)



Q 60. In which of the following scheduling criteria, context switching will never take place ?

(A) ROUND ROBIN
(B) Preemptive SJF
(C) Non-preemptive SJF
(D) Preemptive priority


Answer : (C) Non-preemptive SJF


In Non – preemptive algorithms context switching will never take place because it doesn’t allow to switch the process until it is completed fully.

Except Non-Preemptive SJF , All are Preemptive.
CPU will leave the Shotest Process only after its Full execution,Once process is started to execute.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 59)

 November 23, 2018     Computer Science And Applications Paper-II, Operation System, UGC NET JULY 2018     No comments   

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 59)



Q 59. Consider the following three processes with the arrival time and CPU burst time given in milliseconds:

ProcessArrival TimeBurst Time
P107
P214
P328

The Gantt Chart for preemptive SJF scheduling algorithm is _________.

(A)
                    P1                               P2                     P3           
0                                           7                      13                        21

(B)
         P1                      P2                    P1                     P         
0                      1                        5                      11                    19    

(C)
                    P1                               P2                     P3           
0                                           7                      13                        19

(D)
          P2                    P3                                P1                     
0                      4                       12                                            19

Answer : (B)

Explanation : 
A) Not preemptive. P1 continues execution without being preempted.
B) Preemptive SJF . P1 executes for 1 second followed by execution of P2 for 4 secs. Then P1 finishes execution followed by P3.
C) Not preemptive as each of the processes carries on execution without being preempted.
D)Preemptive but P2 starts execution even before it has arrived which can't happen in reality.

P1 arrive at 0 it will be served by CPU for 1 unit. After 1 unit P2 arrived ans it is shortest So it will execute for 4 unit, after its execution There are 2 processes out of which P1 is shortest so it will execute for 6 unit after its execution P1 will execute for 8 unit.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 56-58)

 November 23, 2018     Computer Science And Applications Paper-II, Operation System, UGC NET JULY 2018     No comments   

UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 56-58)



Q 56. Which of the following statements are true ?
(a) External Fragmentation exists when there is enough total memory space to satisfy a request but the available space is contiguous.
(b) Memory Fragmentation can be internal as well as external.
(c) One solution to external Fragmentation is compaction.


Code:
(A) (a) and (b) only
(B) (a) and (c) only
(C) (b) and (c) only
(D) (a), (b) and (c)

Answer : (C) (b) and (c) only

Explanation:

  • External Fragmentation exists when there is enough total memory space to satisfy a request but the available space is contiguous. This is a false statement because external fragmentation occurs due to non contiguous available space.
  • Memory Fragmentation can be internal as well as external.True
  • One solution to external Fragmentation is compaction or shuffle memory contents.True


  • Q 57. Page information in memory is also called as Page Table. The essential contents in each entry of a page table is/are _________.

    (A) Page Access information
    (B) Virtual Page number
    (C) Page Frame number
    (D) Both virtual page number and Page Frame Number

    Answer : (C) Page Frame number

    Explanation: Page information in memory is also called as Page Table. The essential contents in each entry of a page table is page frame number. (i.e. Frame Number is essential in page table.)


    Q 58. Consider a virtual page reference string 1, 2, 3, 2, 4, 2, 5, 2, 3, 4. Suppose LRU page replacement algorithm is implemented with 3 page frames in main memory. Then the number of page faults are_________.

    (A) 5
    (B) 7
    (C) 9
    (D) 10


    Answer : (B) 7

    Explanation: Page replacement diagram for LRU:


    Read More
    • Share This:  
    •  Facebook
    •  Twitter
    •  Google+
    •  Stumble
    •  Digg

    UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 54-55)

     November 23, 2018     Computer Science And Applications Paper-II, Operation System, UGC NET JULY 2018     No comments   

    UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 54-55)





    Q 54. Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPU's having explicit I/O instructions, such I/O protection is ensured by having the I/O instructions privileged. In a CPU with memory mapped I/O, there is no explicit I/O instruction. Which one of the following is true for a CPU with memory mapped I/O ?

    (A) I/O protection is ensured by operating system routines.
    (B) I/O protection is ensured by a hardware trap.
    (C) I/O protection is ensured during system configuration.
    (D) I/O protection is not possible.

    Answer : (A) I/O protection is ensured by operating system routines.

    Explanation: Memory mapped I/O means, accessing I/O via general memory access as opposed to specialized IO instructions.
    The programmer can directly access any memory location directly. To prevent such an access, the OS (kernel) will divide the address space into kernel space and user space. An user application can easily access user application. To access kernel space, we need system calls (traps).


    Q 55. Which UNIX/Linux command is used to make all files and sub-directories in the directory “progs” executable by all users ?

    (A) chmod− R a+x progs
    (B) chmod −R 222 progs
    (C) chmod−X a+x progs
    (D) chmod −X 222 progs

    Answer : (A) chmod− R a+x progs

    Solution : Option A will make all files and sub-directories in the directory (progs) executable by all users.
    -R is for recurssive calls, so that sub-directories within the directories can be accessed.
    a is for all users
    +x is for making things executable
    Read More
    • Share This:  
    •  Facebook
    •  Twitter
    •  Google+
    •  Stumble
    •  Digg
    Older Posts Home

    Facebook

    StudyViral

    Labels

    Alphabet Pattern Binary Tree BLOB (Binary Large Object) Computer Networks Computer Science And Applications Paper-II Data Structure DBMS Digital Clock Digital Watch Extra Tutorials File Upload Find Age from Date of Birth Graph-Algorithms Java and J2EE web applications JAVA JDK 12 Java Mail API Java MySQL Java Programs Java Programs List Java Servlets Java Swing Java Swing With MySQL Database Java Tutorials JCalender KVS Compuer Science - January 2017 Question Paper MS Access JDBC Java Application Multiuser Login NETBEANS 11 IDE Occurrence of Digits in Number Operation System Pattern Program Reverse of String Sending Email Servlet Servlet Tutorial Software Engineering Star Struts 2 FrameWork Struts 2 Registration Form UGC NET JULY 2018 Windows Commands

    Popular Posts

    • Install NetBeans 11 IDE on Windows 10 - Study Viral
      Install NetBeans 11 IDE on Windows 10 - Study Viral How to Install NetBeans 11 IDE on Windows 10. Download Link : https://netbeans...
    • UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 51-53)
      UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 51-55) Q 51. At a particular time of computation, the value ...
    • Program 01: Write a program to display/print your name.
       Program 01 - Write a program to display/print your name. This is a very basic and introductory program in Java. You might see similar p...

    Categories

    • Alphabet Pattern (13)
    • Binary Tree (2)
    • BLOB (Binary Large Object) (1)
    • Computer Networks (2)
    • Computer Science And Applications Paper-II (40)
    • Data Structure (6)
    • DBMS (1)
    • Digital Clock (1)
    • Digital Watch (1)
    • Extra Tutorials (3)
    • File Upload (1)
    • Find Age from Date of Birth (1)
    • Graph-Algorithms (1)
    • Java and J2EE web applications (3)
    • JAVA JDK 12 (1)
    • Java Mail API (3)
    • Java MySQL (5)
    • Java Programs (44)
    • Java Programs List (3)
    • Java Servlets (3)
    • Java Swing (16)
    • Java Swing With MySQL Database (4)
    • Java Tutorials (37)
    • JCalender (1)
    • KVS Compuer Science - January 2017 Question Paper (6)
    • MS Access JDBC Java Application (6)
    • Multiuser Login (1)
    • NETBEANS 11 IDE (1)
    • Occurrence of Digits in Number (1)
    • Operation System (4)
    • Pattern Program (8)
    • Reverse of String (2)
    • Sending Email (1)
    • Servlet (3)
    • Servlet Tutorial (3)
    • Software Engineering (4)
    • Star (7)
    • Struts 2 FrameWork (2)
    • Struts 2 Registration Form (1)
    • UGC NET JULY 2018 (40)
    • Windows Commands (2)

    Pages

    • Java Tutorials
    • ASP.NET (in Hindi)
    • Java Programs List

    Blog Archive

    • ▼  2021 (3)
      • ▼  April 2021 (3)
        • Program 03: Write a program to show the use of Dat...
        • Program02: Write a program to Add Two Integers.
        • Program 01: Write a program to display/print your ...
    • ►  2019 (7)
      • ►  June 2019 (1)
      • ►  May 2019 (2)
      • ►  March 2019 (4)
    • ►  2018 (111)
      • ►  November 2018 (7)
      • ►  October 2018 (20)
      • ►  September 2018 (10)
      • ►  August 2018 (3)
      • ►  July 2018 (19)
      • ►  June 2018 (5)
      • ►  May 2018 (2)
      • ►  April 2018 (3)
      • ►  March 2018 (11)
      • ►  February 2018 (18)
      • ►  January 2018 (13)
    • ►  2017 (36)
      • ►  December 2017 (10)
      • ►  November 2017 (9)
      • ►  October 2017 (7)
      • ►  September 2017 (10)

    About Me

    Rohit Basra
    Hello guys my name Rohit Basra. I love to code and teach java language.
    View my complete profile

    Followers

    Copyright © Study Viral (Java Tutorials For Beginners - Step By Step) | Powered by Blogger