This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 10151. |
Radhika changed the "Text" property of a Checkbox named jCheckBox1 to "Reading". What change (if any) will be reflected in its name property? |
|
Answer» There will be no change. |
|
| 10152. |
Write java statement to make the Net Fee text field named txtNetFee un-editable at run time. |
|
Answer» txtNetFee.setEditable(false); |
|
| 10153. |
Ariya has typed the following comments. Write the comments using another way. //This is a comment spreading//over two Iines |
|
Answer» /*This is a command spreading Over two lines*/ |
|
| 10154. |
Write any one similarity and one difference between primary key and unique Constraint. |
|
Answer» Similarity: Column with both the constraints will only take unique values. Difference: Column with Primary key constraints will not be able to hold NULL values while Column with Unique constraints will be able to hold NULL values. |
|
| 10155. |
Write a query to display customer’s name who has withdrawn the money. |
|
Answer» Select cust_name from customer c,transaction t where c.Acc_No=t.Acc_No and Transaction_Type= "Debit"; |
|
| 10156. |
Given below is HTML code. Rewrite the correct code underlining all the corrections done. < cl type = "A'' start = "D">< li > Bake in oven for an hour< li > Remove from oven< li > Serve |
|
Answer» <ol type= "A" start = "D"> <li>Bake in oven for an hour</li> <li>Remove from oven</li> <Ii>Serve</li> </ol> |
|
| 10157. |
Write any one similarity and one difference between primary key and unique Constraint |
|
Answer» Similarity: Column with both the constraints will only take unique values. Difference: Column with Primary key constraints will not be able to hold NULL values while Column with Unique constraints will be able to hold NULL values. |
|
| 10158. |
Mention any one advantage of jCheckBox control over jRadioButton control. |
|
Answer» Multiple options can be selected through jCheckBox control while jRadioButton allows selecting a single option. |
|
| 10159. |
What will be an output of the following code if value of variable application is 1?switch(application){case 0 : jTextField1.setText("RDBMS");case 1 : jTextField1.setText("BROWSER");case 2 : jTextField1.setText("OS"); break;case 3 : jTextField1.setText("PHOTO EDITOR"); break;default : jTextField1.setText("Application Software"); break;} |
|
Answer» The output is: OS |
|
| 10160. |
Explain the meaning of the following statement with the help of example. "Tags are not predefined in XML" |
|
Answer» This statement states that in XML the tags used are not predefined, which means that there is just a procedure that user needs to follow and hence whatever is written in accordance to that, will act as an tag of XML. In general user defines the tag accordance to the object in consideration. |
|
| 10161. |
Prachi is working with following swing controls:jButton, jLabel, jTextField, jCheckBox.Suggest her any two basic methods commonly available with all the four controls mentioned above. |
|
Answer» getText(), setText() |
|
| 10162. |
How jLabel is different from jTextField control at run time? |
|
Answer» jLabel is an un-editable control, used to display text or information at run time while jTextField control is an editable control where user can type in characters at run time. |
|
| 10163. |
Prachi is working with following swing controls:jButton, jLabel, jTextField, jCheckBox.Suggest her any two basic methods commonly available with all the four controls mentioned above. |
|
Answer» getText(), setText() |
|
| 10164. |
Name two properties and two methods that are common in jTextField and jLabel. |
|
Answer» Common properties are : (i) Name. (ii) Height. (iii) Left. (iv) Top. Two common methods are: (i) setHorizontalAlignment(int). (ii) getHorizontalAlignment(int). |
|
| 10165. |
What is the relationship between SQL and MySQL? |
|
Answer» SQL stands for Structured Query Language. It's a standard language for accessing and manipulating databases. MySQL is a database management system, like SQL Server Oracle, Informix, Postgres, etc. MySQL is a RDMS (Relational Database Management System). |
|
| 10166. |
Kunal has entered the following SQL- command on Table 'STUDENT' that has TotalMarks as one of the columns. SELECT COUNT (*) FROM STUDENT;The output displayed is 20.Then, Kunal enters the following command :SELECT COUNT (*) FROM STUDENT WHERE TotalMarks <100;The output displayed is 15.Then, Kunal enters the following command :SELECT COUNT (*) FROM STUDENT WHERE TotalMarks >= 100;He predicts the output of the above query as 5. Do you agree with Kunal ? Give reason for your answer. |
|
Answer» The prediction of Kunal is correct. Since, total entries arc 20, which are total numbers of students. 15 students got marks less than 100. So, rest are getting the marks which is equal to or greater than 100. (20 - 15 = 5). |
|
| 10167. |
Write SQL statement that gives the same output as the following SQL statement but uses 'IN' keyword. SELECT NAME FROM STUDENT WHERE STATE = 'VA'; |
|
Answer» SELECT NAME FROM STUDENT WHERE STATE IN ("VA"); |
|
| 10168. |
If there are 10 rows in 'Emp' table and 5 rows in 'Department' table, how many rows will be displayed by the following query?SELECT * FROM Emp, Department;Write the term used for the join being used on the two tables mentioned above. |
|
Answer» 50 rows. This kind of joining is known as Cartesian Product. |
|
| 10169. |
Which one of the following SQL queries will display all Employee records containing the word "Amit", regardless of case (whether it was stored as AMIT, Amit, or amit etc.)?(i) SELECT * from Employees WHERE EmpName like UPPER '%AMIT%'';(ii) SELECT * from Employees WHERE EmpName like '%AMIT%' or '%AMIT%' or '%AMIT%';(iii) SELECT * from Employees WHERE UPPER (EmpName) like '%AMIT%'; |
|
Answer» The correct answer: (iii) SELECT * from Employees WHERE UPPER (EmpName) like '%AMIT%'; |
|
| 10170. |
Will the output from the following two code be any different?First Code:int x=2,y=40;while(y<=x) {jTextField1.setText(""+x);x=x+8;}Second Code :int x=2,y=40;do {jTextField1.setText(""+x);x=x+8;} while(y<=x);Give reasons for your answer. |
|
Answer» Yes it will be different as in First Code there will be no output while in Second Code the output will be 2 because in while loop condition is false in the beginning so control will not come inside the loop even for once while in do while loop, loop will be executed at least once even if the condition is false. |
|
| 10171. |
Will the output from the following two code be any different?First Code:int x=2,y=40;while(y<=x) {jTextField1.setText(""+x);x=x+8;}Second Code :int x=2,y=40;do{jTextField1.setText(""+x);x=x+8;} while(y<=x);Give reasons for your answer. |
|
Answer» Yes it will be different as in First Code there will be no output while in Second Code the output will be 2 because in while loop condition is false in the beginning so control will not come inside the loop even for once while in do while loop, loop will be executed at least once even if the condition is false. |
|
| 10172. |
Many of the programming brains has shifted their focus from Proprietary software to Free and Open software. Mention any two freedom offered by Free software. Going with the flow, Sandhya has downloaded a software from the internet which can be freely distributed and used by anyone but the source code is not available. Is it Freeware or free software? Justify your answer as well.Similarly Premjith wants to install a software on his system that can help him to create, edit and save office documents but he does not want to purchase the software. Suggest him a good software for the same |
|
Answer» Any two freedom offered by Free software are: The freedom to run the program for any purpose. The freedom to redistribute copies. It is Freeware as freeware software are freely distributed and used by anyone but the source code is not available while source will be available with Free software. Openoffice.org |
|
| 10173. |
What is a firewall? |
|
Answer» A firewall is a program or hardware device that filters the information coming through an internet connection to a network or computer system. If incoming information does not pass the rules stored in the firewall, it is not allowed through. |
|
| 10174. |
Ruby, a class XI student has just started learning java programming. Help her in the following:i. Explain her the concept of variable and data type by suitable example.ii. Help her in understanding the difference between assignment operator and comparison operator with the help of appropriate example |
|
Answer» i. Variables are named storage location to store values temporarily which can be changed during program execution. Data type states the way the values of that type are stored, the operations that can be done on that type and the range for that type. For example: int marks; In the above statement, int is the data type and marks is the name of variable which store values temporarily. ii. Assignment operator (=) is used to assign any value in a variable/constant while comparison operator (= =) is used to compare values. For example: int marks=90; In the above statement value 90 is assigned to the variable named marks. if(marks==40) jTextField1.setText(“Just Pass”); In the above if statement, value of marks is being compared with 40. |
|
| 10175. |
Ruby, a class XI student has just started learning java programming. Help her in the following:(i) Explain her the concept of variable and data type by suitable example.(ii) Help her in understanding the difference between assignment operator and comparison operator with the help of appropriate example. |
|
Answer» (i) Variables are named storage location to store values temporarily which can be changed during program execution. Data type states the way the values of that type are stored, the operations that can be done on that type and the range for that type. For example: int marks; In the above statement, int is the data type and marks is the name of variable which store values temporarily. (ii) Assignment operator (=) is used to assign any value in a variable/constant while comparison operator (= =) is used to compare values. For example: int marks=90; In the above statement value 90 is assigned to the variable named marks. if(marks==40) jTextField1.setText(“Just Pass”); In the above if statement, value of marks is being compared with 40. |
|
| 10176. |
NULL value means :(i) 0 value(ii) 1 value(iii) None value(iv) None of the above |
|
Answer» Correct option (d) None value |
|
| 10177. |
Mr. Manav, a database administrator in “Global Educational and Training Institute” has created following table named “Training” for the upcoming training schedule:Traini ng_IdNameEmail_IdTopicCityFeeND01Ms. Rajan[email protected]Cyber SecurityNew Delhi10000GU01Ms. Urvashi[email protected]ICT in EducationGurugram15000FD01Ms. Neenaneenarediff.comCyber SecurityFaridabad12000ND01Mr. VinayNULLICT in EducationNew Delhi13000GU02Mr. Naveen[email protected]Cyber SecurityGurugramNULLHelp him in writing SQL query for the following purpose: i. To count how many female candidates will be attending the training.ii. To display list of free training.iii. To display all the cities where Cyber Security training is scheduled along with its fee.iv. To add a column feedback with suitable data type |
|
Answer» i. Select count(name) from training where name like ‘Ms.%’; ii. Select * from training where fee is NULL; iii. Select city, fee from training where topic = ‘Cyber Security’; iv. Alter table training add feedback varchar(20); |
|
| 10178. |
Discuss the significance of having clause with group by statement with suitable example. |
|
Answer» Sometimes we do not want to see the whole output produced by a statement with Group By clause. We want to see the output only for those groups which satisfy some condition. It means we want to put some condition on individual groups (and not on individual records). A condition on groups is applied by Having clause. For example consider the following query: select Acc_No, sum(Amount) from Customer c, Transaction t where c.Acc_No=t.Acc_No group by c.Acc_No having Transaction_Type="Credit"; This query will create account number wise groups and instead of displaying the total amount of all type of transactions, it will only display the total of credit transactions only. |
|
| 10179. |
Ms. Archana, a class XI student has just started learning MySQL. Help her in understanding the basic difference between Alter and Update command with suitable example.Also suggest her suitable command for the following purpose:(i) To display the list of the databases already existing in MySQL.(ii) To use the database named City.(iii) To remove the pre-existing database named Clients.(iv) To remove all the records of the table named “Club” at one go along with its structure permanently. |
|||||||||||
Answer»
suitable command: (i) Show Databases (ii) Use City (iii) Drop Database Clients (iv) Drop table Club |
||||||||||||
| 10180. |
Vani, a class X student has recently completed her HTML course and just started learning XML. Help her in the following: (i) Mention her any one main difference between HMTL and XML. (ii) She has been told that “All major browsers have a built-in XML parser to access and manipulate XML”. Is this statement right or wrong?(iii) Explain her the purpose of comments in XML document.(iv) Tell her the syntax to put comments in XML documents.(v) Explain her the meaning of well-formed XML documents |
|
Answer» (i) Primary purpose of HTML is to design a webpage while XML is used to store and transport the data. (ii) Right (iii) Comments are added as notes or lines for understanding the purpose of an XML code. (iv) A comment starts with <!--and ends with -->. Syntax for comments are as follows: <!--Comments--> (v) An XML document with correct syntax is called "Well Formed". |
|
| 10181. |
is_connected() is the MYSQL function to : (i) establish a connection to a mysql database from python. (ii) verify whether the python application is connected to mysql database.(iii) traverse through records in mysql database. (iv) None of the above |
|
Answer» (e) verify whether the python application is connected to mysql database. |
|
| 10182. |
Mr. Manav, a database administrator in “Global Educational and Training Institute” has created following table named “Training” for the upcoming training schedule:Traini ng_IdNameEmail_IdTopicCityFeeND01Ms. Rajan[email protected]Cyber SecurityNew Delhi10000GU01Ms. Urvashi[email protected]ICT in EducationGurugram15000FD01Ms. Neenaneenarediff.comCyber SecurityFaridabad12000ND01Mr. VinayNULLICT in EducationNew Delhi13000GU02Mr. Naveen[email protected]Cyber SecurityGurugramNULLHelp him in writing SQL query for the following purpose: i. To count how many female candidates will be attending the training.ii. To display list of free training.iii. To display all the cities where Cyber Security training is scheduled along with its fee.iv. To add a column feedback with suitable data type |
|
Answer» i. Select count(name) from training where name like ‘Ms.%’; ii. Select * from training where fee is NULL; iii. Select city, fee from training where topic = ‘Cyber Security’; iv. Alter table training add feedback varchar(20); |
|
| 10183. |
Select Acc_No, sum(Amount) from Customer c, Transaction t where c.Acc_No=t.Acc_No group by c.Acc_No having Transaction_Type="Credit"; |
|
Answer» 2301003 65000 2201002 20000 |
|
| 10184. |
What is the degree and cardinality of the above given table named ‘Training’. |
|
Answer» Degree: 6 Cardinality: 5 |
|
| 10185. |
Shewani has recently started working in MySQL. Help her in understanding the difference between the following :(i) Where and having clause(ii) Count(column_name) and count(*) |
|
Answer» (i) Where clause is used to show data set for a table based on a condition and having clause is used to put condition on the result set that comes after using Group by clause. (ii) COUNT(*) returns the number of items in a group, including NULL values and duplicates. COUNT(expression) evaluates expression for each row in a group and returns the number of non null values. Candidate Key – A Candidate Key can be any column or a combination of columns that can qualify as unique key in database. There can be multiple Candidate Keys in one table. Each Candidate Key can qualify as Primary Key. Primary Key – A Primary Key is a column or a combination of columns that uniquely identify a record. Only one Candidate Key can be Primary Key. A table can have multiple Candidate Keys that are unique as single column or combined multiple columns to the table. They are all candidates for Primary Key. |
|
| 10186. |
Observe the table ‘Club’ given below:ClubMember_idMember_NameAddressAgeFeeM001SumitNew Delhi202000M002NishaGurgaon193500M003NiharikaNew Delhi212100M004SachinFaridabad183500(i) What is the cardinality and degree of the above given table?(ii) If a new column contact_no has been added and three more members have joined the club then how these changes will affect the degree and cardinality of the above given table. |
|
Answer» (i) Cadinality: 4 Degree: 5 (ii) Cardinality: 7 Degree: 6 |
|
| 10187. |
Observe the table named “Training” given above carefully and predict the output of the following queries:i. select city from training where topic = 'Cyber Security';ii. select count(Training_Id) from training where email_id like '%gmail% ';iii. select AVG (Fee) from training where Topic = 'Cyber Security';iv. select name from training where INSTR (Email_Id, '@’)=0; |
|
Answer» i. New Delhi Faridabad Gurugram ii. 2 iii. 11000 iv. Ms. Neena |
|
| 10188. |
Shiva has placed two radio button on a payment form designed in NetBeans to accept mode of payment one out of cash or card. To his surprise, during runtime, a customer is able to select both the options for a single transaction. What went wrong? |
|
Answer» Shiva has forgot to attach both the radio buttons to one button group to make them mutually exclusive. |
|
| 10189. |
How many rows and column will be there in the Cartesian product of the above given tables. Also mention the degree and cardinality of the Cartesian product of the above given tables |
|
Answer» Cartesian Product: Number of Rows: 20 Number of Columns: 9 Degree: 9 Cardinality: 20 |
|
| 10190. |
What is the degree and cardinality of the above given table named ‘Training’. |
|
Answer» Degree: 6 Cardinality: 5 |
|
| 10191. |
On the basis of following table answer the given questions:Table: CUSTOMER_DETAILSCust_IDCust_Name Acct_TypeAccumlt_Amt DOJ Gender CNR_001Manoj Saving1012501992-02-19MCNR_002 RahulCurrent1322501998-01-11MCNR_004 Steve Saving182001998-02-21M CNR_005Manpreet CurrentNULL1994-02-19M(i) Write the degree and cardinality of the above table.(ii) What will be the output of the following query : Select max(DOJ) From Customer_Details;(iii) Write the sql query to delete the row from the table where customer has no accumulated amount. |
|
Answer» (i) The degree is 6 and cardinality is 5. (ii) +------------+ |max(DOJ)| +------------+ |1998-02-21| +------------+ (iii) Delete from Customer_Details where Accumlt_Amt is NULL; |
|
| 10192. |
Rewrite the following code using while loop: int sum=0;for(int i=l;i<=5;+ + i){sum =sum +c;}System.out. println(sum); |
|
Answer» int sum=0, i=1; while(i<=5) {sum=sum+c; i++; } |
|
| 10193. |
Mention the purpose of applying lining in a garment. What kind of material should be used and what points should be kept in mind to select lining? |
|
Answer» Purpose of a lining- to finish the garment and to hide the garment’s inner construction. Kind of a material- slippery, match/contrast with the colour of the garment. Selection of a lining- compatible with care requirements of the rest of the garment, sufficiently opaque. |
|
| 10194. |
Name the designer to win an Academy Award for best costume design and in which year? |
|
Answer» Bhanu Athaiya-1983 |
|
| 10195. |
Give reasons for following:a. Different silhouettes and variations in garment are preferred for teens clothing.b. Head size of an infant should be taken into account while designing clothes for them.c. Fabrics preferred for toddlers are from the easy to care category. |
|
Answer» a. changes in body shapes of teens b. head size of child is 1/5th of his height c. energetic behavior and rapidly growing body. |
|
| 10196. |
Who are costume designers? |
|
Answer» who designs and accessories the clothes worn by actors onscreen. |
|
| 10197. |
Write steps to develop Mandarin Collar. |
Answer»
|
|
| 10198. |
‘An essential step before starting the construction of garment is fabric preparation.” Discuss series of steps to prepare fabric to achieve a better fit and professional look. |
|
Answer» (a) Blocking off grain fabric (b) Preshrinking (c) Identifying right side of fabric. |
|
| 10199. |
What is Performance Appraisal? |
|
Answer» Monitoring the performance of an employee. |
|
| 10200. |
Explain the various steps of making a continuous placket with neat labelled diagrams. |
|
Answer» a. Placket attachment on sleeve b. Finishing of placket c. Bar-tack (along with relevant figures) |
|