SQL questions with answers:



 
1.     Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Data Definition Language (DDL)

2.     What operator performs pattern matching?
LIKE operator

3.     What operator tests column for the absence of data?
IS NULL operator

4.     Which command executes the contents of a specified file?
             START <filename> or @<filename>

5.     What is the parameter substitution symbol used with INSERT INTO command?
             &

6.     Which command displays the SQL command in the SQL buffer, and then executes it?
             RUN

7.     What are the wildcards used for pattern matching?
             _ for single character substitution and % for multi-character substitution

8.     State true or false. EXISTS, SOME, ANY are operators in SQL.
             True

9.     State true or false. !=, <>, ^= all denote the same operation.
             True

10.  What are the privileges that can be granted on a table by a user to others?
            Insert, update, delete, select, references, index, execute, alter, all

11.  What command is used to get back the privileges offered by the GRANT command?
             REVOKE

12.  Which system tables contain information on privileges granted and privileges obtained?
             USER_TAB_PRIVS_MADE, USER_TAB_PRIVS_RECD

13.  Which system table contains information on constraints on all the tables created?
             USER_CONSTRAINTS

14.        TRUNCATE TABLE EMP;
DELETE FROM EMP;
Will the outputs of the above two commands differ?
             Both will result in deleting all the rows in the table EMP.

15.  What is the difference between TRUNCATE and DELETE commands?
             TRUNCATE is a DDL command whereas DELETE is a DML command. Hence DELETE operation can be rolled back, but TRUNCATE operation cannot be rolled back. WHERE clause can be used with DELETE and not with TRUNCATE.

16.  What command is used to create a table by copying the structure of another table?
Answer :
             CREATE TABLE .. AS SELECT command
Explanation :
To copy only the structure, the WHERE clause of the SELECT command should contain a FALSE statement as in the following.
CREATE TABLE NEWTABLE AS SELECT * FROM EXISTINGTABLE WHERE 1=2;
If the WHERE condition is true, then all the rows or rows satisfying the condition will be copied to the new table.

17.  What will be the output of the following query?
SELECT REPLACE(TRANSLATE(LTRIM(RTRIM('!! ATHEN !!','!'), '!'), 'AN', '**'),'*','TROUBLE') FROM DUAL;
             TROUBLETHETROUBLE

18.  What will be the output of the following query?
SELECT  DECODE(TRANSLATE('A','1234567890','1111111111'), '1','YES', 'NO' );
Answer :
             NO
Explanation :
The query checks whether a given string is a numerical digit.

19.  What does the following query do?
SELECT SAL + NVL(COMM,0) FROM EMP;
             This displays the total salary of all employees. The null values in the commission column will be replaced by 0 and added to salary.


20.  Which date function is used to find the difference between two dates?
             MONTHS_BETWEEN

21.  Why does the following command give a compilation error?
DROP TABLE &TABLE_NAME;
             Variable names should start with an alphabet. Here the table name starts with an '&' symbol.

22.  What is the advantage of specifying WITH GRANT OPTION in the GRANT command?
             The privilege receiver can further grant the privileges he/she has obtained from the owner to any other user.

23.  What is the use of the DROP option in the ALTER TABLE command?
             It is used to drop constraints specified on the table.

24.  What is the value of ‘comm’ and ‘sal’ after executing the following query if the initial value of ‘sal’ is 10000?
UPDATE EMP SET SAL = SAL + 1000, COMM = SAL*0.1;
             sal = 11000, comm = 1000

25.  What is the use of DESC in SQL?
Answer :
             DESC has two purposes. It is used to describe a schema as well as to retrieve rows from table in descending order.
Explanation :
The query SELECT * FROM EMP ORDER BY ENAME DESC will display the output sorted on ENAME in descending order.

26.  What is the use of CASCADE CONSTRAINTS?
             When this clause is used with the DROP command, a parent table can be dropped even when a child table exists.

27.  Which function is used to find the largest integer less than or equal to a specific value?
             FLOOR

28.  What is the output of the following query?
SELECT TRUNC(1234.5678,-2) FROM DUAL;
             1200

_______________________________

More Usefull posts:

Click Here: Important Quries (SQL)

Top 25 C# Interview Questions

 

Resume or Curriculum Vitae (CV) ?


What's the difference between a resume and a CV?
The primary differences are the length, the content and the purpose. A resume is a one or two page summary of your skills, experience and education. A goal of resume writing is to be brief and concise since, at best, the resume reader will spend a minute or so reviewing your qualifications.

A Curriculum Vitae, commonly referred to as CV, is a longer (two or more pages), more detailed synopsis. It includes a summary of your educational and academic backgrounds as well as teaching and research experience, publications, presentations, awards, honors, affiliations and other details.

UGC NET Paper -1 Questions With Answers:





UGC NET Paper -1  Questions With Answers:
Q51) A teacher learns maximum from
Options:
A) Principal
B) Books
C) Students
D) None of these
Answer: Option C) Students

Q52) If majority of students in your class are weak you should
Options:
A) Not care about intelligent students.
B) Keep your speed in teaching fast so that students comprehension level may increase.
C) Keep you teaching slow.
D) Keep your teaching slow along with some extra guidance to bright pupils.
Answer: Option D) Keep your teaching slow along with some extra guidance to bright pupils.

Q53) The first important step in teaching is
Options:
A) planning of reprasentation of topic or subject.
B) organizing the background of students for the subject
C) organizing the material to be taught
D) knowing the background of students
Answer: Option D) knowing the background of students

Q54) Failure of students in examination, it may be the fault of
Options:
A) teacher
B) principal
C) students themselves
D) both (a)and ( c)
Answer: Option D) both (a)and ( c)

Q55) Research is born out of
Options:
A) human curiosity
B) human requirements
C) natural incidents
D) None of these
Answer: Option A) human curiosity

Q56) Which of the following is the first step of research?
Options:
A) Identification of subject
B) Identification of nature of problem
C) Both (a) and (b)
D) None of these
Answer: Option C) Both (a) and (b)

Q57) The biochemical processes taking place in the body is known as
Options:
A) Catabolism
B) Metabolism
C) Anabolism
D) None of above
Answer: Option B) Metabolism

Q58) Hybrid computer is a combination of
Options:
A) Calculator and Laptop
B) Laptop and Abacus
C) Analog Computer and Digital Computer
D) Punch Card and Analog Computer
Answer: Option C) Analog Computer and Digital Computer

Q59) The final result of a study will be more accurate if the sample drawn is
Options:
A) taken randomly
B) fixed by quota
C) representative to the population
D) purposive
Answer: Option C) representative to the population

Q60) Noise is known as
Options:
A) transmitting barrier
B) receiving barrier
C) sender barrier
D) none of these
Answer: Option A) transmitting barrier
  
Please feel free to post variations. And we highly appreciate if you could point the Correct Answer

(Taken From:
http://quicknet.in.managewebsiteportal.com)





How to Prepare for the UGC NET Examination:

How to Prepare for the UGC NET Examination:


a) Introduction to UGC NET: The University Grants Commission (UGC) conducts National Eligibility Test (NET) to determine eligibility for lectureship and for award of Junior Research Fellowship (JRF) for Indian nationals in order to ensure minimum standards for the entrants in the teaching profession and research. The Test is conducted in Humanities (including languages), Social Sciences, Forensic Science, Environmental Sciences, Computer Science and Applications and Electronic Science.

b) NET Syllabus is King: Almost 85% of UGC NET  questions are from the content of UGC NET syllabus. You should always spend your time in reading the contents related to the syllabus to have a cutting edge.

c) NET Old Question Papers are Valuable: The old questions are hardly repeated exactly in the same format. However they are periodically repeated by molding the question. The good thing is that through question is different, the answer remain the same. So, if you go through the answer of the old questions and prepare a note, it will be very much worthwhile.

d)Read Daily News Paper

e) Your Personal Notes: After completion of this guide book, please go through your own notes that are not covered in our guide book to refresh your old stock of knowledge.

f) Time Management at the Exam Hall:Time Management during the examination is a crucial factor for your success in NET. You should be able to answer all the questions within the stipulated time frame.

Paper-1:
The main objective of this Paper-1 is to decide the candidates interest and abilities in Teaching and Research. 
The ability to understand the subject, reasoning, application of methodological reasoning etc are to be decided by this paper. This paper includes: Teaching aptitude Research aptitude Reading Comprehension Communication Reasoning Logical Reasoning Data Interpretation Information and communication Technology People environment Higher education System: Governance, Polity and Administration.


Paper-2:Paper-3:

These are the papers that were chosen by the candidate as per Master's or PG Degree. So he must be having some basic as well as advanced knowledge in them.


Refer Websites:
http://www.netugc.com/
www.examrace.com 
www.jagranjosh.com