USE THIS SEARCH BOX AND GET MORE QUESTIONS UPDATES

Friday, October 5, 2018

SQL Server 2008

  1. What are the basic functions for master, msdb, model, tempdb and resource databases?
    1. The master database holds information for all databases located on the SQL Server instance and is theglue that holds the engine together. Because SQL Server cannot start without a functioning masterdatabase, you must administer this database with care.
    2. The msdb database stores information regarding database backups, SQL Agent information, DTS packages, SQL Server jobs, and some replication information such as for log shipping.
    3. The tempdb holds temporary objects such as global and local temporary tables and stored procedures.
    4. The model is essentially a template database used in the creation of any new user database created in the instance.
    5. The resoure Database is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata.
  2. What is Service Broker?
    Service Broker is a message-queuing technology in SQL Server that allows developers to integrate SQL Server fully into distributed applications. Service Broker is feature which provides facility to SQL Server to send an asynchronous, transactional message. it allows a database to send a message to another database without waiting for the response, so the application will continue to function if the remote database is temporarily unavailable.
  3. Where SQL server user names and passwords are stored in SQL server?
    They get stored in System Catalog Views sys.server_principals and sys.sql_logins.
  4. What is Policy Management?
    Policy Management in SQL SERVER 2008 allows you to define and enforce policies for configuring and managing SQL Server across the enterprise. Policy-Based Management is configured in SQL Server Management Studio (SSMS). Navigate to the Object Explorer and expand the Management node and the Policy Management node; you will see the Policies, Conditions, and Facets nodes.

Sunday, September 30, 2018

Operating Systems

  1. Explain the concept of Reentrancy?
    It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.
    Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.
  2. Explain Belady's Anomaly?
    Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.
  3. What is a binary semaphore? What is its use?
    A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

Friday, September 28, 2018

UNIX File Management

  1. How are devices represented in UNIX?
    All devices are represented by files called special files that are located in /dev directory. Thus, device files and other files are named and accessed in the same way. A 'regular file' is just an ordinary data file in the disk. A 'block special file' represents a device with characteristics similar to a disk (data transfer in terms of blocks). A 'character special file' represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).
  2. What is 'inode'?
    All UNIX files have its description stored in a structure called 'inode'. The inode contains info about the file-size, its location, time of last access, time of last modification, permission and so on. Directories are also represented as files and have an associated inode. In addition to descriptions about the file, the inode contains pointers to the data blocks of the file. If the file is large, inode has indirect pointer to a block of pointers to additional data blocks (this further aggregates for larger files). A block is typically 8k.

    Inode consists of the following fields:

    1. File owner identifier
    2. File type
    3. File access permissions
    4. File access times
    5. Number of links
    6. File size
    7. Location of the file data
  3. Brief about the directory representation in UNIX.
    A Unix directory is a file containing a correspondence between filenames and inodes. A directory is a special file that the kernel maintains. Only kernel modifies directories, but processes can read directories. The contents of a directory are a list of filename and inode number pairs. When new directories are created, kernel makes two entries named '.' (refers to the directory itself) and '..' (refers to parent directory). System call for creating directory is mkdir (pathname, mode).

Sunday, September 23, 2018

Arithmetic Reasoning

1.The total of the ages of Amar, Akbar and Anthony is 80 years. What was the total of their ages three years ago ?
71 years 72 years 74 years 77 years

2. Two bus tickets from city A to B and three tickets from city A to C cost Rs. 77 but three tickets from city A to B and two tickets from city A to C cost Rs. 73. What are the fares for cities B and C from A ?
Rs. 4, Rs. 23 Rs. 13, Rs. 17 Rs. 15, Rs. 14 Rs. 17, Rs. 13

3.An institute organised a fete and 1/5 of the girls and 1/8 of the boys participated in the same. What fraction of the total number of students took part in the fete ?
2/13 13/40 Data inadequate None of these

4.A number of friends decided to go on a picnic and planned to spend Rs. 96 on eatables. Four of them, however, did not turn up. As a consequence, the remaining ones had to contribute Rs. 4 each extra. The number of those who attended the picnic was
8 12 16 24

5.A, B, C, D and E play a game of cards. A says to B, "If you give me three cards, you will have as many as E has and if I give you three cards, you will have as many as D has." A and B together have 10 cards more than what D and E together have. If B has two cards more than what C has and the total number of cards be 133, how many cards does B have ?
22 23 25 35

Friday, September 21, 2018

Verification of Truth

1. A train always has
Rails Driver Guard Engine

2.Which one of the following is always found in 'Bravery'?
Experience Power Courage Knowledge

3.A song always has
Word Chorus Musician Tymbal

4.Yesterday I saw an ice cube which had already melted due to heat of a nearby furnace.
Always Never Often Sometimes

5.What is found necessarily in milk?
Cream Curd Water Whiteness