Practice Set Based
on Class Content For
[ABEE]
In which language MYSQL is written?
A. PYTHON
B. C/C+
C. JAVA
D. COBOL
Answer: B) C/C++
To see the list of options provided by MYSQL which of the following
command is used?
A. HELP
B. –HELP
C. -- HELP
D. ELP-
Answer: C) -- HELP
If you want to stop the processing query then which of the following
command you should use?
A. QUIT
B. STOP
C. /c
D. C and D both
Answer: C) /c
To see all the databases which command is used?
A. Show database;
B. Show databases;
C. Show database();
D. Show_all database;
Answer: B) Show databases;
What are the three important manipulations for a loop on a loop variable?
A. Updation, Incrementation, Initialization
B. Initialization, Testing, Incrementation
C. Testing, Updation, Testing
D. Initialization, Testing, Updation
Answer: (D) Initialization, Testing, Updation
Which of the following command is used to delete a database?
A. DELETE DATABASE_NAME;
B. DROP DATABASE_NAME;
C. DROP DATABASE DATABASE_NAME;
D. DELETE DATABASE DATABASE_NAME;
Answer: C) DROP DATABASE DATABASE_NAME;
Which of the following variables in JS takes precedence over the others if the
names are the same?
A. Global variable
B. The local element
C. The two of the above
D. None of the above
Answer: (B) The Local Element
Which of the following true for [Link] file?
A. It is created automatically
B. It is interlinked with the [Link] file
C. It ensures to have same results in any Environment
D. All of the Above
Answer: (D) All of the Above
ALTER command is a type of which SQL command?
A. DML
B. DDL
C. DCL
D. DQL
Answer: B) DDL
Consider the following two tables:
Table1:
Emp_ID | Name | Age | City
1 | Raman | 25 | New York
2 | Prem | 30 | Los Angeles
3 | Bob | 35 | San Francisco
Table2:
Emp_ID | Department | Timing
1 | ECE | 80000
2 | Mgmt | 120000
4 | CSE | 150000
What will be the result of the following SQL query?
SELECT [Link], [Link] FROM Table1 LEFT JOIN Table2 ON
Table1.EMP_ID = Table2.EMP_ID
A. Raman ECE, Prem Mgmt
B. Raman ECE, Prem Mgmt, Bob NULL
C. Raman ECE, Prem Mgmt, NULL NULL
D. None of the above
ANSWER: Raman ECE, Prem Mgmt, Bob NULL
Considering the above Table, find out the inner joint with the same
condition.
What is the result of the following code: [Link](5 * "3")?
A. 15
B. 5
C. 5*3
D. Error
Answer: (A) 15
Which of the following module is not a built-in node module?
A. zlib
B. https
C. dgram
D. fsread
Answer: D
What is a table joined with itself called?
A. Join
B. Self Join
C. Outer join
D. None of the above
Answer: (B) Self Join
Which of the following keyword is used to make properties and methods
available outside the module file?
A. import
B. module
C. exports
D. require
Answer: C
Which of the following commands is used to delete a trigger in SQL?
A. DROP
B. DELETE
C. ALTER
D. None of the above
Answer: (A) Drop
Which of the following statement is correct?
A. js is Server Side Language.
B. js is the Client Side Language.
C. js is both Server Side and Client Side Language.
D. None of the above.
Answer: A is the correct option. [Link] is Server Side Language.
Which of the following given functions of the Number Object formats a
number with a different number of digits to the right of the decimal?
A. toExponential()
B. toFixed()
C. toPrecision()
D. toLocaleString()
Answer: (B) toFixed()
Which one of the following options is the correct output for the given code
of JavaScript?
var pow=newFunction("num1","num2","return [Link](num1,num2)");
[Link](pow(2,3));
A. 8
B. 3
C. 6
D. Error
Answer: (A) 8
Which of the following command is used to start a REPL session?
A. $ node
B. $ node start
C. $ node repl
D. $ node console
Answer: A is the correct option.
To know your MYSQL version and current date which of the following
command you should use?
A. VERSION, CURRENT_DATE();
B. SELECT VERSION, CURRENTDATE();
C. SELECT VERSION(), CURRENT_DATE;
D. SELECT VERSON(),CURRENT_DATE();
Answer: C) SELECT VERSION (), CURRENT_DATE;
Which of the following is the correct way to declare an array in JavaScript?
A. let array = (1, 2, 3);
B. let array = [1, 2, 3];
C. let array = {1, 2, 3};
D. let array = "1, 2, 3";
Answer: (B), let array = [1, 2, 3];