Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

In general, how are recursive relationships handled in a database design?

Answer»

A recursive relationship is a relationship among entities of the same class, and is represented in the same way as other relationships are. The rows of the tables can take two different roles, however. Some are parent rows, and others are child rows. Further, the table will contain both its own primary key and the foreign key that links back to the table itself. If a row has no parent, then the value of the foreign key column in that row will be null. If the row has a parent, then there must be a foreign key value in that row that corresponds to the primary key value of another row in the table.

2.

What is a recursive relationship? Give an example not used in the text.

Answer»

A recursive relationship is a relationship between an entity and itself. 

For example, given the entity PERSON, a recursive relationship could be used to show a PERSON and his or her SIBLINGs (brothers and sisters).

3.

What is the job of the information stored in data-dictionary?

Answer»

The information in the data dictionary validates the existence of the objects, provides access to them, and maps the actual physical storage location.

4.

What is Storage Manager?

Answer»

It is a program module that provides the interface between the low-level data stored in database, application programs and queries submitted to the system.

5.

What are the advantages of using stored procedures?

Answer»

The advantages of stored procedures are 

(1) greater security, 

(2) decreased network traffic, 

(3) the fact that SQL can be optimized and 

(4) code sharing which leads to less work, standardized processing, and specialization among developers.

6.

What are the steps for transforming an entity into a table?

Answer»

The steps are: 

(1) specify the primary key, 

(2) specify candidate keys, 

(3) specify column properties including null status, data type, default value (if any), and data constraints (if any), and 

(4) verifying normalization.

7.

Define and discuss data constraints.

Answer»

Data constraints on a column are the limits put on the values the data can have. 

There are four types of data constraints: 

(1) domain constraints, which define a limited set of values for the column, 

(2) range constraints, which specify that the values must fall within a certain range, 

(3) intrarelation constraints, which define what values the column can have based on values of other columns in the same table, and 

(4) interrelation constraints, which define values the column can have based on values of columns in other tables.

8.

How do you communicate with an RDBMS?

Answer»

You communicate with an RDBMS using Structured Query Language (SQL).

9.

Explain the "paradigm mismatch" between SQL and application programming languages.

Answer»

SQL statements return a set of rows, while an application program works on one row at a time. To resolve this mismatch the results of SQL statements are processed as pseudofiles, using a cursor or pointer to specify which row is being processed.

10.

What are stored-procedures? And what are the advantages of using them?

Answer»

Stored procedures are database objects that perform a user defined operation. A stored procedure can have a set of compound SQL statements. A stored procedure executes the SQL commands and returns the result to the client. Stored procedures are used to reduce network traffic.

11.

Define a surrogate key, describe the ideal primary key and explain how surrogate keys meet this ideal.

Answer»

The ideal primary key is short, numeric and fixed. A surrogate key is a unique, DBMS-supplied identifier intended to be used as the primary key of a table. Further, the DBMS will not allow the value of a surrogate key to be changed. The values of a surrogate key have no meaning to the users and are usually hidden on forms and reports. By design, they are short, numeric and fixed and thus meet the definition of the ideal primary key

12.

Explain what we mean by an ACID transaction.

Answer»

An ACID transaction is one that is atomic, consistent, isolated, and durable. Durable means that database changes are permanent. Consistency can mean either statement level or transaction level consistency. With transaction level consistency, a transaction may not see its own changes. There are four transaction isolation levels: read committed, read uncommitted, repeatable read and serialization. Atomic means it is performed as a unit.

13.

Define SQL and state the differences between SQL and other conventional programming Languages.

Answer»

SQL is a nonprocedural language that is designed specifically for data access operations on normalized relational database structures. The primary difference between SQL and other conventional programming languages is that SQL statements specify what data operations should be performed rather than how to perform them.

14.

Point out the correct statement?(a) autoplotgraph is used to complete ggplot appropriate to a particular data type(b) auto_element wraps up a projection of summary functions(c) ggplot.data create a new ggplot plot from a data frame(d) aes_sdensity display a smooth density estimate

Answer» The correct answer is (c) ggplot.data create a new ggplot plot from a data frame

Explanation: is.ggplot reports whether x is a ggplot object.
15.

What is database Trigger?

Answer»

A database trigger is a PL/SQL block that can defined to automatically execute for insert, update, and delete statements against a table. The trigger can e defined to execute once for the entire statement or once for every row that is inserted, updated, or deleted. For any one table, there are twelve events for which you can define database triggers. A database trigger can call database procedures that are also written in PL/SQL.

16.

What are the ways in which an Oracle database can be created?

Answer»

There are three (3) ways to create an Oracle database. You can create a database using the Database Configuration Assistant, using the Oracle-supplied database creation procedures or using the SQL CREATE DATABASE command.

17.

R language has superficial similarity with _________(a) C(b) Python(c) MATLAB(d) SAS

Answer» Right choice is (a) C

Best explanation: The language syntax has a superficial similarity with C, but the semantics are of the FPL (functional programming language) variety with stronger affinities with Lisp and APL. There are many syntaxes in C, which are closely resembled with R.
18.

How many atomic vector types does R have?(a) 5(b) 6(c) 8(d) 10

Answer» Correct answer is (b) 6

For explanation I would say: R language has 6 atomic data types. They are logical, integer, real, complex, string (or character) and raw. There is also a class for “raw” objects, but they are not commonly used directly in data analysis.
19.

Name the three major set of files on disk that compose a database in Oracle.

Answer»

There are three major sets of files on disk that compose a database. 

All the files are binary. These are 

1. Database files 

2. Control files 

3. Redo logs

The most important of these are the database files where the actual data resides. The control files and the redo logs support the functioning of the architecture itself. All three sets of files must be present, open, and available to Oracle for any data on the database to be useable. Without these files, you cannot access the database, and the database administrator might have to recover some or all of the database using a backup, if there is one.

20.

What are sequences, and what are the possible problems when using them to create surrogate keys?

Answer»

A sequence is an object that generates a sequential series of unique numbers. Sequences are most often used to provide values for surrogate keys. However, there are three problems with using sequences. First, a developer can use a defined sequence for any purpose; and if a sequence is used for purposes other than the surrogate key, some values will be missing. A second problem is that there is nothing in the schema that prevents someone from issuing an INSERT statement that adds data to the table but that does not use the sequence. Finally, it is possible to use the wrong sequence when putting data into a table.

21.

Which of the following is the colour argument?(a) Col(b) Dol(c) Cul(d) Acol

Answer» The correct choice is (a) Col

Explanation: Col is the colouring argument in R and R has a variety of graphics functions. Each function has its own set of arguments.
22.

Under what conditions should indexes be used?

Answer»

Indexes can be created to enforce uniqueness, to facilitate sorting, and to enable fast retrieval by column values. A good candidate for an index is a column that is frequently used with equal conditions in WHERE clauses.

23.

What are the types of files used in Oracle recovery?

Answer»

Datafiles, control files and two types of ReDo log files: OnLine Redo and Offline ReDo (which is also known as Archive ReDo).

24.

Discuss some of the techniques that can be used to tune operational performance.

Answer»

Choosing primary and secondary keys can increase the speed of row selection, joining, and row ordering. Selecting the appropriate file organization for base tables and indexes can also improve performance. Clustering related rows together and maintaining statistics about tables and indexes can lead to increased efficiency.

25.

Name the property of gases due to which it is possible to fill CNG in cylinderds for using as fule in cars

Answer»

Due to the high compressibility of gases, it is possible to compress large volumes of gases in small cylinders & transport them easily.

26.

Following are a few organisms(a) lichen (b) mosses (c) mango tree (d) cactusWhich among the above can grow on stones; and also help in formation of soil? Write the mode of their action for making soil.

Answer»

Lichens and Mosses (a) and (b). Lichens and mosses release substances which break down the stones resulting in the formation of soil.

27.

If a spring extends by X on loading,then the energy stored by the spring is (if T is tension in the spring and k is spring constant)

Answer»

Energy stored = 1/2 × F × x   .......(1)                      

also in terms of spring constant                                         

 F = k ∙ x                      

hence                                          

x = (F/k)                      

hence from (1),                      

Energy = (1/2) × F × (F/k) = (F2 / 2k)                      

Here F = Tension in the spring                      

hence F = T                               

 ∴ Energy = [T2 / 2k]   

28.

Briefly describe the three types of SQL commands.

Answer»

Data definition language commands are used to create, alter, and drop tables. Data manipulation commands are used to insert, modify, update, and query data in the database. Data control language commands help the DBA to control the database.

29.

Find points at which the tangent to the curve `y=x^(3)-3x^(2)-9x+7` is parallel to the x-axisA. `(3, -20)` and `(-1, 12)`B. `(3, 20)` and `(1, 12)`C. `(3, -10)` and `(1, 12)`D. None of these

Answer» Correct Answer - A
Slope `(dy)/(dx)=3 x^(2)-6x-9`
it tangent is parallel to the x-axis then `(dy)/(dx)=0`
`rArr 3x^(2)-6x-9=0 " " rArr x^(2)-2x-=0`
`rArr x^(2)-3x+ +x-3=0 " " rArr (x-3)(x+1)=0`
`rArr x=3` or `x=-1 " " rArr y=-20` or `y=12`
30.

What are the steps to follow when preparing to create a table?

Answer»

1. Identify the data type, length, and precision for each attribute. 

2. Identify the columns that can accept a null value. 

3. Identify the columns that need to be unique. 

4. Identify primary and related foreign keys with the parent table being created before the child. 

5. Determine default values. 

6. Determine where the domain values are that need to be constrained. 

7. Create the indexes.

31.

Find the points on the curve y = x3 - 3x2 - 9x + 7 at which the tangent to the curve is parallel to the x-axis.  

Answer»

As the tangents to the curve y = x3 - 3x2 - 9x + 7 are parallel to x-axis so, 

dy/dx = 3x2 - 6x - 9 = 0 

3(x2 - 2x - 3) = 0

x = 3,-1

Hence the required points are (3, -20) and (-1,12). 

32.

What is a Cultivator? (Tool)

Answer»

A hand cultivator is a gardening tool that is used to turn the soil where you plan on planting and for removing weeds. In small flower or vegetable gardens, it can also be used like a small plow to dig the planting rows.

33.

What does overlapping difference signify

Answer»

The overlapping significance signify the social difference in one sphere overlapping across the another sphere. It is demonstrated by the poor economic condition of socially depressed communities. In such a situation, the social and economic conditions of the community may be used to be overlapping each other.

34.

Difference between percolation, infiltration and seepage

Answer»

Difference between seepage, infiltration and percolation :

Seepage - When water enters the ground surface at the upstream side of a retaining structure like a dam and comes out at the downstream side.

Infiltration - When water enters the ground surface but doesn't come out, thus increasing the moisture content of the soil.

Percolation - When water enters the ground surface and travels through the soil to finally join the ground water reserves.

35.

Why it is neccessary to break the crumbs (puddling) after ploughing?

Answer»

It is necessary to break the crumb(puddling) after ploughing because Puddler is used for preparation of paddy fields with standing water after initial ploughing. It breaks up the clods and churns the soil. The main purpose of puddling is to reduce percolation of water, to kill weeds by decomposing and to facilitate the transplanting of paddy seedlings by making the soil softer.

The steps involved in puddling are: 

1. saturating and flooding the soil. 

2. plowing the supersaturated soil; 

3. plowing or harrowing at progressively lower water contents.

Advantages of Puddling:

(i) Less power is required for tillage. 

(ii) Puddling hastens transplanting operation easily and smoothly as well as the establishment of seedlings. 

(iii) Puddling creates an impervious layer below the surface to reduce deep percolation of water and to provide soft seed bed for planting paddy, wheat, onion etc. Puddling increases the moisture retention capacity of a soil

(iv) Puddling is an important method of controlling some weeds such as Cynodon dactylon, Cyperus rotundus etc.

37.

Two states of energy gap 6.9x10-21J have relative      Probability of e2. Calculate the temperature of the complete system.

Answer» Two states of energy gap 6.9×10^-21j have relative probability of e2 calculate the temperature of comete system
38.

A letter is selected at random from English alphabet, the probability of it being a roman number is

Answer»

In English language there are 26 alphabets.

The roman numbers in alphabets are I, V, X, L, C, D and M

Alphabets Roman numbers value
I1
V5
X10
L50
C100
D500
M1000

The probability of roman number in English alphabet = 7/26

39.

1kg. Water (at 30oC) is mixed with 2kg. Water (at OoC) calculates the change in entropy

Answer»

Let the final temperature reached be t℃

Specific heat capacity of water = c = 1000 J kg

Given masses = 1 kg and 2 kg

Respective temperatures = 30℃ and 0℃

By zeroth law of Thermodynamics,

Heat lost by 0℃ water = Heat gained by 0℃ water

i.e. 1 × c × (30-t) = 2 × c ×(t-0)

 30 - t = 2t

30 = 3t

t = 10

Change in entropy of 30℃ water = {1×1000×(10–0)}/(10+273)

= 35.33 j/k

Change in entropy of the 0℃ water = -{(2×1000×(30–10)}/(10+273)

= 212.01 j/k

However the net change in the entropy of the total system(of 30℃ water and 0℃ water) 

= 35.33 - 212.01 j/k

 = 176.88 j/k

40.

Why does the magma not come on the earth's surface every time when a volcano burst as it also get a path to come of the earth's surface?{Remember that the magma always try to come on the earth's surface}

Answer»
y beacuse dont copy 
41.

Compare and contrast the advantages and disadvantages of production of genetically modified crops.

Answer»

The production of genetically modified (GM) or transgenic plants has several advantages.

  • Most of the GM crops have been developed for pest resistance, which increases the crop productivity and therefore, reduces the reliance on chemical pesticides.
  •  Many varieties of GM food crops have been developed, which have enhanced nutritional quality. For example, golden rice is a transgenic variety in rice, which is rich in vitamin A.
  •  These plants prevent the loss of fertility of soil by increasing the efficiency of mineral usage.
  • They are highly tolerant to unfavourable abiotic conditions.
  •  The use of GM crops decreases the post harvesting loss of crops.

However, there are certain controversies regarding the use of genetically modified crops around the world. The use of these crops can affect the native biodiversity in an area. For example, the use of Bt toxin to decrease the amount of pesticide is posing a threat for beneficial insect pollinators such as honey bee. If the gene expressed for Bt toxin gets expressed in the pollen, then the honey bee might be affected. As a result, the process of pollination by honey bees would be affected. Also, genetically modified crops are affecting human health. They supply allergens and certain antibiotic resistance markers in the body. Also, they can cause genetic pollution in the wild relatives of the crop plants. Hence, it is affecting our natural environment.

42.

My friend told me that plants like Typha and Vetiver absorb unwanted nutrients from the soil and do natural filter. Is this true? Explain.

Answer»
see child dont copy get 0 marks but never copy 
43.

And molar gas constant is R. The avagadro 's no . is

Answer» Helium is monoatomic gas .  

So its average kinetic energy per molecule (E) = 3/2*kT, where k =R/N ( Boltzman constant), N = Avogadro's Number.

So N =(3/2)*(RT)/E
44.

If vector (a and b) denote the position vectors of points A and B respectively and C is a point on AB such that AC = 2CB, then write the position vector of C. 

Answer»

Clearly here C divides AB in 2 : 1

so, position vector of C = (2 vector(b + a))/3).

45.

Price elasticity of Demand.

Answer»

Price elasticity of demand (PED) shows the relationship between price and quantity demanded and provides a precise calculation of the effect of a change in price on quantity demanded.

46.

If g is the gravitational field intensity, K.E of the satellite isA)mgR/2B) mgRC) mgR/4D)2mgR

Answer» I will go with option (C)

Taking m = mass of satellite

M = mass of earth

g = gravitational field intensity

G = Gravitational constant

v = velocity of satellite at height R from surface of the earth, where R = radius of earth

here GM= gR^2

Here centripetal force = gravitational pull

=> (mv^2)/(2R) = (GMm)/(2R)^2

=> (1/2 mv^2) /R = (gR^2m)/(4R^2)= mg/4

=> KE = mgR/4
47.

Point out the correct statement?(a) Times use the POSIXct and POSIXlt class(b) Dates and times have special classes in R that allow for numerical and statistical calculations(c) Character strings can be coerced to Date/Time classes using the strptime function(d) All of the mentioned

Answer» Correct choice is (d) All of the mentioned

Easiest explanation: Character strings can be coerced to Date/Time classes using the as.Date, as.POSIXlt, or as.POSIXct.
48.

.RData extension used when we save data using the functions ___________(a) save()(b) save.image()(c) save and save.image functions(d) serialize()

Answer» Correct answer is (c) save and save.image functions

Easiest explanation: Save is used for saving an arbitrary number of R objects with a binary format (possibly compressed) to a file. The output of dput() can also be saved directly to a file. Save.Image can be used mostly in R.
49.

What are some disadvantages of a standard language such as SQL?

Answer»

A standard language can hinder the effort to create a new language. One standard is never enough to meet all of the business needs. A standard can be a compromise among interested parties which can cause the standard to not be ideal. If a standard is altered by some, than portability between platforms could be hurt.

50.

Explain a join between tables

Answer»

A join allows tables to be linked to other tables when a relationship between the tables exists. The relationships are established by using a common column in the tables and often uses the primary/foreign key relationship.