406B Open Source Software PDF
406B Open Source Software PDF
9. Which one of the following databases has PHP supported almost since the beginning?
A. Oracle Database
B. SQL
C. SQL+
D. MySQL
ANSWER: D
10. Who creates a program, that may use free software created or derived libraries, widget libraries and
tools?
A. Software developers.
B. Proprietary software developers.
C. Software engineers.
D. Program developers.
ANSWER: B
11. Microsoft uses and releases code under a variety of licenses including __________.
A. gpl.
B. apache.
C. ibm.
D. gnu project license.
ANSWER: B
12. ______________ site that distributes the source code of the software.
A. SsourceForge.net.
B. FreeSoftware.org.
C. OpenSource.org.
D. OpenSourceSoftware.net.
ANSWER: A
14. Which one of the following lines need to be uncommented or added in the php.ini file so as to enable
mysqli extension?
A. extension=php_mysqli.dll
B. extension=mysql.dll
C. extension=php_mysqli.dl
D. extension=mysqli.dl
ANSWER: A
19. Which Program Copies The Databases From One Server To Another?
A. Mysqlcopydb
B. Mysqldbcopy
C. Mysqlflushdb
D. Mysqldbflush
ANSWER: B
20. ________________ usually require just acknowledgement of the original owners work on the software.
A. Reciprocal licenses.
B. Academic licenses.
C. General Public Licenses.
D. Software Licenses.
ANSWER: B
23. _________ is computer software licensed under exclusive legal right of the copy right holder.
A. Open Source Software.
B. Proprietary Software.
C. Public Domain Software.
D. Free Software.
ANSWER: B
25. The open source methods for creating software rely on developers who voluntarily revel code in the
expectation that other developers will reciprocate is called ____________.
A. open source property.
B. intellectual property.
C. software property.
D. licensing property.
ANSWER: B
26. ______________ is a legal instrument governing the usage or redistribution of the software.
A. GNU Public License.
B. Reciprocal License.
C. Software License.
D. Academic License.
ANSWER: C
27. A PHP script should start with ___ and end with ___
A. < php >
B. < ? php ?>
C. <? ?>
D. <?php ?>
ANSWER: C
30. What will happen at the end of the following sequence of SQL commands? BEGIN TRANSACTION
DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK
TRANSACTION
A. The contents of both OTHERTABLE and MYTABLE will be deleted
B. The contents of OTHERTABLE will be deleted, as will be all the contents of MYTABLE whose ID is
1
C. The database will remain unchanged to all users except the one that executes these queries.
D. The database will remain unchanged
ANSWER: D
31. Which of the following functions retrieve the entire contents of a file in such a way that it can be used
as part of an expression?
A. file_get_contents()
B. fgets()
C. fopen()
D. readfile()
ANSWER: A
33. Which of the following must be installed on your computer so as to run PHP script? i. Adobe
Dreamweaver ii. PHP iii. Apache iv. IIS
A. All of the mentioned.
B. Only ii.
C. ii. and iii.
D. ii., iii. and iv.
ANSWER: D
35. To extract a substring from the string starting at from for specified digits and its functions is described
by _____________.
A. return the string in lowercase.
B. return the integer position of a string.
C. extract a substring from the string starting from for specified digits.
D. return the string in uppercase
ANSWER: C
38. Which of the following php statement/statements will store 111 in variable num? i) int $num = 111; ii)
int mum = 111; iii) $num = 111; iv) 111 = $num;
A. Both i) and ii)
B. All of the mentioned
C. Only iii)
D. Only i)
ANSWER: C
39. What will be the output of the following php code? <?php $num = 1; $num1 = 2; print $num . "+".
$num1; ?>
A. 3
B. 1+2
C. 1.+.2
D. Error
ANSWER: B
40. Which one of the following is the right way of defining a function in PHP?
A. function { function body }
B. data type functionName(parameters) { function body }
C. functionName(parameters) { function body }
D. function fumctionName(parameters) { function body }
ANSWER: D
42. A program is listed as RETURNS NULL ON NULL INPUT is also called _______.
A. strict
B. security invoker.
C. security definer.
D. stable
ANSWER: A
43. Which of the following functions reads the entire contents of a file?
A. fgets()
B. file_get_contents()
C. fread()
D. readfile()
ANSWER: B
45. In PHP which language construct is used to output one or more strings?
A. Print
B. Output
C. Echo
D. Show
ANSWER: C
48. MySQL also offers three different types of generalized mechanisms called _______.
A. table handlers or storage engines.
B. myisam.
C. merge.
D. archive
ANSWER: A
49. What is the output of the following code? <?php $str = "Learn PHP and \c"; echo $str; ?>
A. Fatal error
B. Compilation error
C. Learn PHP and \c
D. prints 15
ANSWER: C
54. The ___________________ command clears the screen and positions the cursor and prompt at the top-
left corner.
A. tput erase
B. tput clear
C. tput prompt
D. tput clrscr
ANSWER: B
55. Given an employee table as follows: emp_id emp_name 1 Brush 2 Jerrin what value will be return by
below query ? Select count(*) from employees;
A. 2
B. 3
C. 1
D. 0
ANSWER: A
56. A UNIX specific feature that facilitates communication between two different programs and it's the
default when communication take place locally ____________.
A. tcp protocol.
B. http protocol.
C. ftp protocol.
D. socket files
ANSWER: D
59. The ________________ command is used to list the running processes in the Unix operating system.
A. ps
B. list process
C. processlist
D. process
ANSWER: A
60. The _________________________ command directs the output of the ls command to a file.
A. $ls :: list
B. $ls = list
C. $ls -> list
D. $ls > list
ANSWER: D
61. The _______________ is the core of the Unix operating system that is a collection of routines written
in C.
A. Shell
B. Kernel
C. IO
D. Compiler
ANSWER: B
64. ________________ generator that enables you to quickly assemble SELECT queries.
A. Point-and-click.
B. Database .
C. Bookmark.
D. Stored procedure generator
ANSWER: A
66. The _____________ is quickly accessible through an interface that breaks at the feature according to
task and the function
A. Point-and-click.
B. Bookmark.
C. Mysql documentation.
D. Mysql views
ANSWER: C
67. A _____________ is a set of SQL statements stored in the database server and executed by calling as
assigned name within a query
A. Availability.
B. Stored routine.
C. Mysql query browser.
D. Point-and-click query browser
ANSWER: B
68. The ____________________ command is used to display only the month of the current date.
A. $ date +%month
B. $ date + %m
C. $ date(%month)
D. $ date(month)
ANSWER: B
71. The name used to pass the record offset by the way of the URL is the
___________________________.
A. parameter.
B. links.
C. field.
D. mysql class
ANSWER: A
72. Sound of a database administration practice dictates that table relationships remain stable throughout
the project, this procedure is called ______________.
A. audit.
B. verification.
C. referential integrity enforcement.
D. routine.
ANSWER: C
73. To remove duplicate rows from the result set of a SELECT use the following keyword:
A. NO DUPLICATE
B. UNIQUE
C. DISTINCT
D. None
ANSWER: C
74. The ___________________ tag allows the user to set the size and number of rows and columns of the
control.
A. TEXT
B. INPUT
C. TEXTAREA
D. TEXTINPUT
ANSWER: C
75. Linux consists of the operating system many of the same functions such as _________________.
A. gui.
B. gnome.
C. kdesktop.
D. kernel.
ANSWER: D
76. Linux was developed by the Free Software Foundation's project called _________.
A. gnu project.
B. gpl.
C. open source software.
D. distribution software
ANSWER: A
80. The ________________________ command in Unix is used to set and display the setting of the
terminal.
A. $ ttype
B. $ terminal
C. $ tty
D. $stty
ANSWER: D
86. _____________ is a core program that runs program and managers hardware devices such as disks and
printers.
A. Kernel.
B. Environment.
C. File structure.
D. Network server
ANSWER: A
92. ___________________ is an open source software development site for LINUX application
A. Opensource.net.
B. Linuxapps.com.
C. Sourceforge.net.
D. Opensource.org
ANSWER: C
97. The _____________ is where the Linux system and application files are installed
A. Mount point.
B. Root partition.
C. Auto-probing.
D. IDE controller master
ANSWER: B
98. The recommended place where to install the boot loader in Linux is ______________
A. Linux loader.
B. Rad disk.
C. Grand unified boot loader.
D. Master boot record
ANSWER: D
99. A __________ holds file, much like files held in a file drawer and a directory come to the other
directories
A. Command.
B. Set up file.
C. Directory.
D. Drive
ANSWER: C
101. Which of the following data types cannot be directly manipulated by the client?
A. Cookie Data
B. Session Data
C. Remote IP Address
D. User Agent
ANSWER: B
103. The /etc/lilo.conf configuration file is organized into different segments is called
__________________.
A. directories.
B. paths.
C. drives.
D. stanzas.
ANSWER: D
104. The _______________ tag is used to set values for the dropdown list.
A. VALUES
B. OPTIONS
C. OPTION
D. SELECT
ANSWER: C
105. FLOSS stands for__________________.
A. free\liber\open source software.
B. fiber\liber\open source software.
C. free\liber\operating system software.
D. free\lesser\open source software.
ANSWER: C
108. The _____________ Key word is used to pass values back out to the calling code.
A. Return.
B. back.
C. turn.
D. reverse.
ANSWER: A
109. PHPfunctions transfer any argument values into new variables called _______
A. parameters.
B. stricture.
C. restriction.
D. constraint.
ANSWER: A
112. Which in-built function in PHP will add value to the end of an array
A. into_array().
B. addend_array().
C. inend_array().
D. array_push().
ANSWER: D
113. which function can be used to move array pointer to its previous position in PHP?.
A. last().
B. before().
C. prev().
D. back().
ANSWER: C
114. A function in PHP which starts with double underscore(__) is known as _______.
A. built-in function.
B. magic function.
C. user defined function.
D. default function.
ANSWER: B
115. Which one of the following is the very first task executed by a session enabled page?.
A. Check whether a valid session exists.
B. Delete the previous session.
C. Start a new session.
D. Handle the session.
ANSWER: A
116. Which one of the following is the default PHP session name?
A. PHPSESID.
B. PHPSESSIONID.
C. PHPSESSID.
D. PHPIDSESS
ANSWER: C
118. The _______________ command in Unix is used to change the permissions of file.
A. $chfile
B. $chown
C. $chmod
D. $change
ANSWER: C
120. Which of the following is not true for open source software?
A. It is owned by a person.
B. It supports distributed development.
C. It supports collaborative development.
D. Its code is available for all.
ANSWER: A
122. The _____________________________ commands in Unix are used to create and remove directories.
A. create and remove
B. createdir and removedir
C. makedir and rmdir
D. mkdir and rmdir
ANSWER: D
125. Which function is used to erase all session variables stored in the current session?
A. session_destroy().
B. session_change().
C. session_remove().
D. session_unset().
ANSWER: D
127. The _________________ command in Unix is used to create a disk archive that contains a group of
files or an entire directory structure.
A. $zip
B. $archive
C. $tar
D. $createarchieve
ANSWER: C
131. The ___________________ command removes the execute permission for all the users.
A. $chmod a-x filename
B. $chmod -x filename
C. $chmod all-x filename
D. $chmod x-a filename
ANSWER: A
132. The _________________ SQL Statement adds a new file in the Student table.
A. ALTER TABLE students ADD age varchar(50);
B. ADD FIELD age varchar(50) into students;
C. ALTER TABLE students age varchar(50);
D. ADD age varchar(50) into TABLE students;
ANSWER: A
133. The ______________ clause in SQL statement is used to sort the records in ascending / descending
order.
A. SORT BY
B. ORDER
C. ORDER BY
D. ORDER ASC
ANSWER: C
134. The _________________ SQL Statement is used to increase the bonus by 10% for all Managers.
A. update employees set bonus=bonus+(0.02*basic) where designation = 'Manager';
B. update employees bonus=bonus+(0.02*basic) where designation = 'Manager';
C. update employees set bonus=bonus+(0.02*basic) designation = 'Manager';
D. modify employees set bonus=bonus+(0.02*basic) where designation = 'Manager';
ANSWER: A
135. Which of the following function is used to sort the associate array elements?
A. sort()
B. rsort()
C. asort()
D. esort()
ANSWER: C
136. Speeding up of database queries can be achieved through the use of _____________.
A. NATIONAL
B. PRIMARY KEY
C. BINARY
D. INDEX
ANSWER: D
137. Which of the following looping statement is used to access array elements?
A. for loop
B. do ... while loop
C. while loop
D. for each loop
ANSWER: D
139. The ___________ method indicates that data will be sent to the server as part of the HTTP body and
then the data is transferred to a data-handling program on the web server.
A. GET
B. POST
C. PUT
D. GET
ANSWER: B
140. Which one of the following function outputs the contents of a string variable to the specified resource
A. fwrite().
B. filewrite().
C. filewrites().
D. fwrites().
ANSWER: A
141. The ___________________ SQL command deletes a database.
A. delete DATABASE <database name>;
B. drop DATABASE <database name>;
C. delete <database name>;
D. truncate DATABASE <database name>;
ANSWER: B
142. Linux Kernel minimizes the frequency of disk access by keeping a pool of internal data buffer which
helps to increase the response time, this is known as ?
A. Buffer cache.
B. Spooling.
C. Pooling.
D. Virtual Memory.
ANSWER: A
143. _____________ data type is responsible for a strong combination of date and time information.
A. DATE.
B. TIME.
C. TIME[(p)].
D. TIMESTAMP.
ANSWER: D
144. In string data types, the fixed length representation is determined using __________.
A. char[(length)].
B. string[(length)].
C. varchar[(length)].
D. text.
ANSWER: A
145. Which among the following is used to write small programs to control Linux functionalities ?
A. Shell Commands.
B. Shell Script.
C. vi editor.
D. kernel.
ANSWER: B
146. The ___________command with the +X option will give the script file executable permission,
A. execute.
B. modch.
C. chmod.
D. permod.
ANSWER: C
147. The _______ commands simply prints a set of characters on the screen.
A. display.
B. printing.
C. print.
D. echo.
ANSWER: D
148. The ________command outputs the entire text of a file to the screen at once.
A. catt.
B. cat.
C. copycat.
D. cout.
ANSWER: B
149. The MYSQL __________________ Clause is used to collect data from multiple records and group
the result by one or more column.
A. ORDER BY
B. SORT
C. COLLECT
D. GROUP BY
ANSWER: D
150. The ________ command places the suspended job in the background.
A. bg.
B. bkg.
C. bj.
D. jbk.
ANSWER: A
Staff Name
Umamaheswari S .