0% found this document useful (0 votes)
49 views2 pages

Viva Questions

Uploaded by

amuthavel2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views2 pages

Viva Questions

Uploaded by

amuthavel2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

SQL stands for


Structured Query Language
2. What is the command used to view the databases
Show Databases;
3. What is Primary Key
A primary key is the column or columns that contain values that uniquely identify each row in a table.
4. What is Foreign Key
A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link
between the data in two tables to control the data that can be stored in the foreign key table
5. Purpose of Not Null constraints
The NOT NULL constraint enforces a column to NOT accept NULL values
6. What is logical operators
MySQL's three logical operators are AND, OR, and NOT
7. Which operator is used for pattern matching in SQL
LIKE
8. What is Group By
A GROUP BY statement sorts data by grouping it based on column(s) you specify in the query and is used
with aggregate functions
9. Difference between Truncate and Delete
DELETE is a SQL command that removes one or multiple rows from a table using conditions. TRUNCATE is a
SQL command that removes all the rows from a table without using any condition
10. List some advantages of DBMS
Data redundancy, data integrity, data sharing, etc
11. What DDL, DML
DDL – Data Definition Language
DML – Data Manipulation Language
12. How can we add a column in existing Table?
ALTER TABLE
13. What is the use of the ‘DISTINCT’ keyword in MySQL
DISTINCT keyword is used to retrieve unique values from a specified column or set of columns in a database
table
14. How to create a table in MySQL?
Using DML command CREATE
15. How to Delete Data From a MySQL Table
Using the command DELETE

1. What is JAVA
Java is a multiplatform, object-oriented programming language
2. What is JVM
Java Virtual Machine
3. What is the keywords used for exception handling.
Try, Catch,
4. Define arrays
Arrays are used to store multiple values in a single variable of a same data type
5. What is control statements
A control statement determines whether the next set of tasks have to be executed or not
6. What is libraries
A library is a collection of class definitions and methods that define specific operations
7. What is relational operator
Relational operators are <,<=,>,>=,==,!=
8. How many parts will be there in a for loop
Three. Initialization, Condition, Incrementor / Decrementor
9. Difference between While and Do While loop
While – Entry Control
Do While – Exit Control
10. What is data member
Data members, also known as fields or instance variables, represent the state of an object
11. How to declare variable in Java
Data_type variable name
12. What is constant in Java
Java constants are variables whose value remains unchanged once they are assigned.
13. What is Class in Java
A class in Java is a set of objects which shares common characteristics/ behaviour and common properties/
attributes
14. OOP stand for
Object Oriented Programming
15. What is access modifiers
Access modifiers are keywords which define the accessibility of a class and its member

You might also like