الجمعة، 31 مايو 2013

MCQ of Structured Query Language(SQL) With Answer Set -2


1. Which of the following query is correct for using comparison operators in SQL?

A) SELECT sname, coursename FROM studentinfo WHERE age>50 and <80;

B) SELECT sname, coursename FROM studentinfo WHERE age>50 and age <80;

C) SELECT sname, coursename FROM studentinfo WHERE age>50 and WHERE age<80;

D) None of the above



2.How to select all data from studentinfo table starting the name from letter 'r'?

A) SELECT * FROM studentinfo WHERE sname LIKE 'r%';

B) SELECT * FROM studentinfo WHERE sname LIKE '%r%';

C) SELECT * FROM studentinfo WHERE sname LIKE '%r';

D) SELECT * FROM studentinfo WHERE sname LIKE '_r%';



3. Which of the following SQL query is correct for selecting the name of staffs from 'tblstaff' table where salary is 15,000 or 25,000?

A) SELECT sname from tblstaff WHERE salary IN (15000, 25000);

B) SELECT sname from tblstaff WHERE salary BETWEEN 15000 AND 25000;

C) Both A and B

D) None of the above



4. The SELECT statement, that retrieves all the columns from empinfo table name starting with d to p is ..........................

A) SELECT ALL FROM empinfo WHERE ename like '[d-p]%';

B) SELECT * FROM empinfo WHERE ename is '[d-p]%';

C) SELECT * FROM empinfo WHERE ename like '[p-d]%';

D) SELECT * FROM empinfo WHERE ename like '[d-p]%';



5. Select a query that retrieves all of the unique countries from the student table?

A) SELECT DISTINCT coursename FROM studentinfo;

B) SELECT UNIQUE coursename FROM studentinfo;

C) SELECT DISTINCT coursename FROM TABLE studentinfo;

D) SELECT INDIVIDUAL coursename FROM studentinfo;



6. Which query is used for sorting data that retrieves the all the fields from empinfo table and listed them in the ascending order?

A) SELECT * FROM empinfo ORDER BY age;

B) SELECT * FROM empinfo ORDER age;

C) SELECT * FROM empinfo ORDER BY COLUMN age;

D) SELECT * FROM empinfo SORT BY age;



7. Select the right statement to insert values to the stdinfo table.

A) INSERT VALUES ("15", "Hari Thapa", 45, 5000) INTO stdinfo;

B) INSERT VALUES INTO stdinfo ("15", "Hari Thapa", 45, 5000);

C) INSERT stdinfo VALUES ("15", "Hari Thapa", 45, 5000);

D) INSERT INTO stdinfo VALUES ("15", "Hari Thapa", 45, 5000);



8. How to Delete records from studentinfo table with name of student 'Hari Prasad'?

A) DELETE FROM TABLE studentinfo WHERE sname='Hari Prasad';

B) DELETE FROM studentinfo WHERE sname='Hari Prasad';

C) DELETE FROM studentinfo WHERE COLUMN sname='Hari Prasad';

D) DELETE FROM studentinfo WHERE sname LIKE 'Hari Prasad';



9. Constraint checking can be disabled in existing ............. and .............. constraints so that any data you modify or add to the table is not checked against the constraint.

A) CHECK, FOREIGN KEY

B) DELETE, FOREIGN KEY

C) CHECK, PRIMARY KEY

D) PRIMARY KEY, FOREIGN KEY



10. ..................... joins two or more tables based on a specified column value not equaling a specified column value in another table.

A) OUTER JOIN

B) NATURAL JOIN

C) NON-EQUIJOIN

D) EQUIJOIN


Answers:

1.  B) SELECT sname, coursename FROM studentinfo WHERE age>50 and age <80;
2.  A) SELECT * FROM  studentinfo WHERE sname LIKE 'r%';
3.  A) SELECT sname from tblstaff WHERE salary IN (15000, 25000);
4.  D) SELECT * FROM empinfo WHERE ename like '[d-p]%';
5.  A) SELECT DISTINCT coursename FROM studentinfo;
6.  A) SELECT * FROM  empinfo ORDER BY age;
7.  D) INSERT INTO stdinfo VALUES ("15", "Hari Thapa", 45, 5000);
8.  B) DELETE FROM studentinfo WHERE sname='Hari Prasad';
9. A) CHECK, FOREIGN KEY
10.C) NON-EQUIJOIN

You Might also view the following Related Posts

الخميس، 30 مايو 2013

Solved MCQ of SQL Server set-1

1. ........................ is the full form of SQL.
A) Standard Query Language
B) Sequential Query Language
C) Structured Query Language
D) Server Side Query Language

2. SQL Server 2005 NOT includes the following system database .............
A) tempdb Database
B) Master Database
C) Model Database
D) sqldb Database

3. SQL Server stores index information in the ..................... system table.
A) sysindexes
B) systemindexes
C) sysind
D) sysindexes

4. ..................... is a read-only database that contains system objects that are included with SQL Server 2005.
A) Resource Database
B) Master Database
C) Model Database
D) msdb Database

5. The SQL Server services includes .....................
A) SQL server agent
B) Microsoft distribution transaction coordinator
C) Both a & b
D) None of the above

6. ...................... is a utility to capture a continuous record of server activity and provide auditing capability.
A) SQL server profile
B) SQL server service manager
C) SQL server setup
D) SQL server wizard

7. The query used to remove all references for the pubs and newspubs databases from the system tables is ..........................
A) DROP DATABASE pubs, newpubs;
B) DELETE DATABASE pubs, newpubs;
C) REMOVE DATABASE pubs, newpubs;
D) DROP DATABASE pubs and newpubs;

8. ...................... clause specifies the groups into which output rows are to be placed and, if aggregate functions are included in the SELECT clause.
A) ORDER BY
B) GROUP
C) GROUP BY
D) GROUP IN

9. .................. are predefined and maintained SQL Server where users cannot assign or directly change the values.
A) Local Variables
B) Global Variables
C) Assigned Variables
D) Direct Variables

10. Microsoft SQL Server NOT uses which of the following operator category?
A) Bitwise Operator
B) Unary Operator
C) Logical Operator
D) Real Operator

Answers:

1.  C) Structured Query Language
2.  D) sqldb Database
3.  D) sysindexes
4.  A) Resource Database
5.  C) Both a & b
6.  B) SQL server service manager
7.  A) DROP DATABASE pubs, newpubs;
8.  C) GROUP BY
9.  B) Global Variables
10.D) Real Operator

You Might also view the following Related Posts

الثلاثاء، 28 مايو 2013

Solved MCQ of E-Commerce and E-Banking Set-1

1. The term e-commerce includes ............................
A) Electronic trading of Physical goods and intangibles such as information.
B) The electronic provision of services such as after sales support or online legal advice
C) All the steps involved in trade, such as on-line marketing ordering payment and support for delivery.
D) All of the above.


2. Which of the following is the largest community in classification of e-commerce?
A) Business to Business (B to B)
B) Business to Consumer (B to C)
C) Business to Government (B to G)
D) Government to Government (G to G)

3. Which of the following is not the example of business to consumer (B to C) e-commerce?
A) Amazon.com
B) e-bay.com
C) dell.com
D) lastminute.com

4. The types of Business to Business e-commerce are ................
A) Direct selling and support to Business
B) Industry portals
C) Information sites about a industry
D) All of the above

5. Which of the following are the benefits of E-marketing?
i) Speed                                ii) Reach and Penetration
iii) Ease and Efficiency           iv) Low Cost
v) Targeted audience
A) i, ii, iii and iv only
B) ii, iii, iv and v only
C) i, iii, iv and v only
D) All i, ii, iii, iv and v

6. ...................... is the process of recreating a design by analyzing a final product.
A) Forward Engineering
B) Reverse Engineering
C) Backward Engineering
D) None of the above

7. .................. is simply the use of electronic means to transfer funds directly from one account to another, rather than by cheque or cash.
A) M-Banking
B) O-Banking
C) E-Banking
D) D-Banking

8. The telephone banking service includes ...................
i) Automatic balance voice out   ii) Inquiry all term deposit account
iii) Direct cash withdraw           iv) Utility Bill payments
v) Voice out last five transactions
A) i, ii, iii and v only
B) i, ii, iv and v only
C) ii, iii, iv and v only
D) All i, ii, iii, iv and v

9. Which of the following are the forms of E-banking?
i) Internet Banking                      ii) Telephone Banking
iii) Electronic Check conversion   iv) Electronic Bill Payment
v) Direct Deposit
A) i, ii, iii and iv only
B) ii, iii, iv and v only
C) i, iii, iv and v only
D) All i, ii, iii, iv and v

10. What is the full form of SWIFT?
A) Society for Worldwide Internet Financial Telecommunications.
B) Secret Wide Interbank Financial Telecommunications
C) Society for Worldwide Interbank Financial Telecommunications
D) None of the Above

Answers:

1.  D) All of the above.
2.  A) Business to Business (B to B)
3.  B) e-bay.com
4.  D) All of the above
5.  D) All i, ii, iii, iv and v
6.  B) Reverse Engineering
7.  C) E-Banking
8.  B) i, ii, iv and v only
9.  D) All i, ii, iii, iv and v
10.D) None of the Above

You Might also view the following Related Posts

الاثنين، 27 مايو 2013

Solved MCQ of Computer Organization and Architecture set-1



1. A collection of lines that connects several devices is called ..............

A) bus

B) peripheral connection wires

C) Both a and b

D) internal wires



2. A complete microcomputer system consist of ...........

A) microprocessor

B) memory

C) peripheral equipment

D) all of the above



3. PC Program Counter is also called ...................

A) instruction pointer

B) memory pointer

C) data counter

D) file pointer



4. In a single byte how many bits will be there?

A) 8

B) 16

C) 4

D) 32



5. CPU does not perform the operation ..................

A) data transfer

B) logic operation

C) arithmetic operation

D) all of the above



6. The access time of memory is ............... the time required for performing any single CPU operation.

A) Longer than

B) Shorter than

C) Negligible than

D) Same as



7. Memory address refers to the successive memory words and the machine is called as ............

A) word addressable

B) byte addressable

C) bit addressable

D) Terra byte addressable



8. A microprogram written as string of 0's and 1's is a .............

A) Symbolic microinstruction

B) binary microinstruction

C) symbolic microinstruction

D) binary micro-program



9. A pipeline is like ....................

A) an automobile assembly line

B) house pipeline

C) both a and b

D) a gas line



10. Data hazards occur when .....................

A) Greater performance loss

B) Pipeline changes the order of read/write access to operands

C) Some functional unit is not fully pipelined

D) Machine size is limited



Answers:



1. A) bus

2. D) all of the above

3. A) instruction pointer

4. A) 8

5. A) data transfer

6. A) Longer than

7. A) word addressable

8. D) binary microprogram

9. A) an automobile assembly line

10. B) Pipeline changes the order of read/write access to operands


You Might also view the following Related Posts

الأحد، 26 مايو 2013

MCQ of Internet and HTML With Answer Set-2


1. ......................... connects web pages.
A) Connector
B) Link
C) Hyperlink
D) None of the above

2. Internet is ...............................
A) a network of networks
B) an ocean of resources waiting to be mined
C) a cooperative anarchy
D) all of the above

3. .................. is suitable for remote administration of a computer.
A) FTP
B) Shell
C) Remote Procedure Call
D) Telnet

4. Title tag is nested within the ....................... tag.
A) Body
B) Head
C) List
D) Table

5. .................... is a web's native protocol.
A) SLIP
B) TCP/IP
C) HTTP
D) PPP

6. The Internet uses the ........................ as the protocol engine.
A) SLIP
B) HTTP
C) TCP/IP
D) PPP

7. A ............................. is a symbolic name a network administrator assigns to a machine.
A) URL
B) DNS
C) IP address
D) Host name

8.  Which of the following protocol is used for e-mail services.
A) SMAP
B) SMTP
C) SMIP
D) SMOP

9. ...................... is the incoming e-mail server.
A) POP
B) SMTP
C) SMIP
D) PPP

10. ....................... is a uniform naming scheme for locating resources on the web.
A) URI
B) HTTP
C) WEBNAME
D) RESOURCENAME

Answers:

1. C) Hyperlink
2.  D) all of the above
3.  D) Telnet
4.  B) Head
5.  C) HTTP
6.  C) TCP/IP
7.  D) Host name
8.  B) SMTP
9.  A) POP
10. A) URI


You Might also view the following Related Posts

السبت، 25 مايو 2013

Solved MCQ of Internet and HTML set-1


1. The attribute .................. of <BODY> tag sets color of hypertext links.
A) link
B) vlink
C) alink
D) hlink

2. Default font size of HTML is .......................
A) 2
B) 4
C) 6
D) 3

3. This is a networking device that passes data between networks having similar functions but dissimilar implementations.
A) Hub
B) Modem
C) Gateway
D) Repeater

4. In order to connect to ISP's server you need .......
A) Hand gloves
B) Printer
C) User name and Password
D) None of the above

5. DNS translates .........
A) domain name into IP
B) IP into domain name
C) both a & b
D) domain name into physical address

6. In order to upload a HTML file to a web server, you use
A) HTTP
B) SMTP
C) SIP
D) FTP

7. IEEE stands for ........
A) Institute of estimated elevator efficiency
B) Institute of electrical and economical engineers
C) Institute of Eurasia engineering event
D) Institute of electrical and electronics engineers

8. The regional networks are connected to the corporate networks, this is also called as ........
A) Backbone
B) LAN COM
C) WAN COM
D) Intranet

9. Once the email is sent, the message is broken into pieces called ..................
A) Packets
B) Process
C) Digits
D) Bytes

10. ................... is known as father of World Wide Web.
A) Robert Cailliau
B) Tim Thompson
C) Charles Darwin
D) Tim Berners-Lee


Answers:

1. A) link
2. D) 3
3. C) Gateway
4. C) User name and Password
5. C) both a & b
6. D) FTP
7. D) Institute of electrical and electronics engineers
8. A) Backbone
9. A) Packets
10. D) Tim Berners-Lee

You Might also view the following Related Posts

السبت، 18 مايو 2013

How to Optimize Images for Web Using Photoshop and ImageReady?

Image Optimization
Using optimized images on your website or blog is most necessary thing for both loading speed and quality. The size of optimized images are very small than the original images, so it can decrease the weight of your site drastically. 

There are lots of free as well as paid websites for providing service of image optimization on online. You can also use some special applications for optimizing images by downloading from web. But today, I am going to tell about a best offline method using well known applications Adobe Photoshop and ImageReady. 

To Optimize Images Using Adobe Photoshop 


It is well known that Adobe Photoshop is the most popular Photo editing Software. Along with editing you can save images as optimize for web by using the following steps. 

1. At first open an image using Adobe Photoshop program and redesign or edit that using appropriate tools. 

2. After that go to file menu and click on save for web option. 

3. In the new window select Optimized or 2-up or 4-up tab to preview optimized images. Select the image having required format and quality and click on save. 

optimizing image using photoshop

To Optimize Images Using Adobe ImageReady 


Adobe ImageReady is the application specially for designing images for web. You can create different size of banners image in the number of formats like '.jpeg', '.gif', '.png' etc. To save your designed image as optimized for web, you can use the following steps. 

1. At first open an image using Adobe ImageReady program and redesign or edit that using appropriate tools. 

2. Select the required file format and quality from the palate. 

3. After that go to file menu and click on save optimized as option. 

4. Click on save after giving filename. 

If you have such any other tips for optimizing images for web and if you have any comments about this post you can mention this on the comment session of this blog. I will always welcome to you