MCQ-Multiple Choice Questions-2081-COMPUTER-NEB



 Multiple Choice Questions

  1. A key attribute of a master table being used in a child table for setting relationship is known as:
    1. primary key
    2. candidate key
    3. foreign key
    4. super key
  2. Which SQL keyword is used to retrieve data from a table?
    1. SELECT
    2. FROM
    3. WHERE
    4. JOIN 
  3. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" ends with "a".
    1. SELECT * FROM Persons WHERE FirstName="a";
    2. SELECT * FROM Persons WHERE FirstName="a%";
    3. SELECT * FROM Persons WHERE FirstName="%a";
    4. SELECT * FROM Persons WHERE FirstName="%a%";
  4. What is the output of this statement "printf("%d", (a++))"?
    1. The value of (a + 1)
    2. The current value of a
    3. Error message
    4. Garbage
  5. Which of the following methods is used to access HTML elements using JavaScript?
    1. getElementById()
    2. getElementByClassName()
    3. getElementsByTagName()
    4. all of the above.
  6. Which function is used to connect to the MySql database?
    1. mysqli_connect()
    2. mysqli_query()
    3. mysqli_Open()
    4. $mysqli_con()
  7. Which of the following is remote login service?
    1. Video Conference 
    2. Telnet
    3. FTP
    4. ALL
  8. Which protocol is used to deliver a message to the mail server.
    1. FTP
    2. TCP
    3. SMTP
    4. POP
  9. Which layer of OSI is responsible for controlling flow of data and error correction?
    1. Transport
    2. Network
    3. Application
    4. session
  10. A presence of primary key attribute of a master table in a child table for setting relationship is known as:
    1. primary key
    2. candidate key
    3. foreign key
    4. super key
  11. Which function is used to connect to the MySql database?
    1. mysqli_connect()
    2. mysqli_Open()
    3. mysqli_query()
    4. $mysqli_con()
  12. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with "a".
    1. SELECT * FROM Persons WHERE FirstName="a";
    2. SELECT * FROM Persons WHERE FirstName="a%";
    3. SELECT * FROM Persons WHERE FirstName="%a";
    4. SELECT * FROM Persons WHERE FirstName="%a%";
  13. Which statement is used to print the values in PHP?
    1. Cho
    2. Eecho
    3. echo
    4. echho
  14. Which syntax is used for opening and closing a PHP script? 
    1. <php> . . . </php>
    2.  <?php . . . ?>
    3. ? php . . .? php
    4. <p> . . . </p>
  15. What is the output of this statement "printf("%d", (++a))"?
    1. The value of a will be increased by 1 after the process
    2. The current value will be printed
    3. Error message
    4. The value of a will increased by 1 and print
  16. Which of the following is an incorrect IP address?
    1. 192.168.0.1
    2. 192.168.1.256
    3. 172.255.0.0
    4. 202.10.79.4
  17. Which of the following represents the fastest data transmission speed? 
    1. Gbps.
    2. Kbps.
    3. Bps.
    4. Mbps.
  18. What is the full form of Mbps?
    1. Mega Bits Per Second
    2. Mega Bytes Per Second
    3. Mega Bands Per Second
    4. Mega Bites Per Second

Post a Comment

0 Comments