BanglaData.Blogspot.Com

BanglaData.Blogspot.Com

বাংলা তথ্য ভান্ডারে স্বাগতম

সকল তথ্য পাবেন....BanglaData তে

Welcome To BanglaData

Keep visiting @ BanglaDataBlog

বুধবার, ২৮ অক্টোবর, ২০১৫

ORACLE MCQ Test - 4

ORACLE MCQ Test - 4


Que.1. Oracle creates an index for the _____________ in the snapshot base table
A:        Primary key
B:        Foreign key
C:        Super key
D:        Both a and c
Right Answer: A
Que.2. How should a many-to-many relationship be handled?
A:        By adding an join entity table
B:        By adding intersection entity table
C:        By adding union entity table
D:        By adding Cartesian entity table
Right Answer: B
Que.3. The delay between the time a DML change is applied at the originating database and the time the transaction reaches the destination databases is called as
A:        Propagation
B:        Propagation latency
C:        Conflict
D:        Conflict latency
Right Answer: B
Que.4. Which of the following rule below is FALSE for a database object?
A:        Has a unique name within that schema
B:        Object names cannot be longer than 30 bytes
C:        Must begin with a letter
D:        None of the above
Right Answer: D
Que.5. More than one materialized view cannot use a materialized view log
A:        True
B:        False
Right Answer: B
Que.6. Name the tool for tuning SQL statements.
A:        TUNEUP SYS
B:        EXPLAIN SYS
C:        DB_TUNEUP
D:        EXPLAIN PLAN
Right Answer: D
Que.7. What is the probable cause for getting the following error stack?
ERROR: ORA-01034: ORACLE not available
ORA-07318: smsget: open error when opening sgadef.dbf file.
HP-UX Error: 2: No such file or directory
A:        The Oracle segment is shutdown that they are trying to access
B:        The Oracle namespace is shutdown that they are trying to access
C:        The Oracle instance is shutdown that they are trying to access
D:        None of the above
Right Answer: C
Que.8. A ____________________ is a structure that contains definitions, blocks of PL/SQL code, or both in a single unit
A:        Package body
B:        Package
C:        Procedure
D:        Both a and b
Right Answer: B
Que.9. Which of the following is the fastest query method for a table?
A:        Fetch by columnid
B:        Fetch by tableid
C:        Fetch by rowid
D:        Fetch by indexid
Right Answer: C
Que.10. By default which refresh on a snapshot is performed by Oracle?
A:        Fast refresh
B:        Complete refresh
C:        Automatic refresh
D:        Attempts fast refresh, if it cannot be preformed server performs a complete refresh
Right Answer: D
Que.11. What do you mean by Quiescence?
A:        act of suspending DML activity for all tables in a given replication group
B:        act of suspending DML activity for selected tables in a given replication group
C:        act of granting DML activity for selected tables in a given replication group
D:        act of granting DML activity for all tables in a given replication group
Right Answer: A
Que.12. Which of the following below is a type of replication?
A:        Update replication
B:        Read-only materialized views
C:        Multi replication
D:        All of the above
Right Answer: B
Que.13. Using synonyms is a good way to implement location transparency.
A:        True
B:        False
Right Answer: A
Que.14. What are the two ways to determine the structure of a table in database?
A:        Using DESCRIBE command and dbms_metadata_get_commit package
B:        Using METADATA command STRUCTURE commands
C:        Using DATA_ON_DATA and STRUCTURE commands
D:        Using DESCRIBE command and dbms_metadata_get_ddl package
Right Answer: D
Que.15. Where would you look for errors from the database engine?
A:        In the error log
B:        In the alter log
C:        In the alert log
D:        In the recovery log
Right Answer: C
Que.16. Which of the following are three advisory statistics to collect?
A:        Buffer Cache Table, Segment Level Statistics, Timed Statistics
B:        Buffer Table Cursor statistics, Segment Level Cursor statistics, Timed statistics
C:        Segment Table statistics, Buffer and Cursor statistics, Timed Cursor statistics
D:        Buffer Index statistics, Segment Index Statistics, Timed Index Statistics
Right Answer: A
Que.17. A cluster is a schema object that contains data from _____________ , all of which have one or more columns in common.
A:        one table
B:        one or more tables
C:        two or more tables
D:        atleast two tables
Right Answer: C
Que.18. A _______________ is a collection of one or more replicated objects (typically tables) that are administrated together
A:        Replica
B:        Replica group
C:        Replication
D:        Replication group
Right Answer: D
Que.19. A hot backup is
A:        taking up the backup of the database while it is still up and running
B:        taking up the backup of the database after the user logs off
C:        taking up the backup followed by taking cold backup
D:        None of the above
Right Answer: A
Que.20. What command is used to encrypt a PL/SQL application?
A:        DB_ENCRYPT
B:        DBMS_ENCRYPT
C:        DBMS_WRAP
D:        WRAP
 
http://mcqtestanswers.blogspot.com/

PHP MCQ Test

PHP MCQ Test – 1

Que.1. Use the ___________ to delete the data inside the table, and not the table itself?
A.    DEOP TABLE
B.    DELETE TABLE
C.    TRUNCATE TABLE
D.    REMOVE TABLE

Right Answer: C

Que.2. In mail($param1, $param2, $param3, $param4), the $param2 contains:
A.    The message
B.    The recipient
C.    The header
D.    The subject

Right Answer: D

Que.3. Which of the following delimiter is ASP style?
A.    <% %>
B.    <? ?>
C.    <script language=”php”></script>
D.    All of the above

Right Answer: A

Que.4. What is the purpose of basename() function in PHP?
A.    Returns the last accessed time of the file
B.    Returns the first accessed time of the file
C.    Strips of the path and returns the file name.
D.    Strips of the path the returns of the folder name.

Right Answer: C

Que.5. In PHP, fgets() is used to read a file one line at a time.
A.    TRUE
B.    FALSE

Right Answer: A

Que.6. Which of the following statement produce different output
A.    <? echo “this is php example”; ?>
B.    <P=”This is php example”;?>
C.    <?php echo “This is php example”; php?>
D.    <script language=”php”>print “This is php example”;</script>

Right Answer: C

Que.7. Which of the following data type is compound datatype supported by PHP.
A.    Array
B.    String
C.    Float
D.    Boolean

Right Answer: A

Que.8. Which of the following functions in PHP do not return a timestamp?
A.    time()
B.    date()
C.    strtotime()
D.    localtime()
E.    gmmktime()

Right Answer: BD

Que.9. Which of the following are valid float values?
A.    4.5678
B.    4
C.    7.00E+04
D.    All of the above

Right Answer: D

Que.10. Which of the following type specifier is invalid in printf() functions.
A.    %  a
B.    %  b
C.    %  c
D.    %  d

Right Answer: A

Que.11. Transactions are used to treat sets of SQL statements atomically.
A.    TRUE
B.    FALSE

Right Answer: A

Que.12. How does the identity operator ===compare two values in PHP?
A.    It converts them to common compatible data type and then compares the resulting values.
B.    It returns True only if they are both of the same type and value
C.    If the two values are strings, it performs a lexical comparison
D.    It based its comparison on the C strcmp function exclusively
E.    It converts both values to strings and compares them

Right Answer: B

Que.13. Which of the following is not an SQL aggregate function?
A.    AVG
B.    SUM
C.    MIN
D.    MAX
E.    CURRENT_DATE()

Right Answer: E

Que.14. The _____________ statement is used to delete a table in MySQL.
A.    DROP TABLE
B.    DELETE TABLE
C.    DEL TABLE
D.    REMOVE TABLE

Right Answer: A

Que.15. The ____________function parses an English textual date or time into Unix timestamp in PHP.
A.    strtodate()
B.    stroftime()
C.    strtotime()
D.    str_to_time()

Right Answer: C

Que.16. Which function(s) in PHP computes the difference of arrays?
A.    array_diff
B.    diff_array
C.    arrays_diff
D.    diff_arrays

Right Answer: A

Que.17. ______________ Returns the time of sunrise for a given day / location in PHP.
A.    datesunrise()
B.    date_sunrise()
C.    date-sunrise()
D.    date.sunrise()

Right Answer: B

Que.18. What is the difference between print() and echo() in PHP?
A.    echo can take multiple parameters where as print not
B.    print has a return value of 1 so it can be used in expressions where as echo has a void return type
C.    echo() can be used in the CLI version of PHP, while print() can’t
D.    print() can be used in the CLI version of PHP, while echo() can’t
E.    There’s no difference: both functions print out some text!

Right Answer: AB

Que.19. The ___________ function is used to read a single character from a file in PHP.
A.    fgetc()
B.    fgets()
C.    fget()
D.    fgetf()

Right Answer: A

Que.20. In PHP, which of the following(s) count elements in an array?
A.    count
B.    Sizeof
C.    Array_Count
D.    Count_array

Right Answer: AB

ORACLE MCQ Test

ORACLE MCQ Test – 1

Que.1. To determine the tome zone under which a database was operating
A.    select DBTIOMEZONE from root
B.    select TIMEZONE_DB from dual
C.    select DB_TIME_ZONE from dual
D.    select DBTIMEZONE from dual

Right Answer: D

Que.2. Can there be more than one datafile per tablespace?
A.    Yes
B.    No

Right Answer: A

Que.3. Where is the data dictionary kept?
A.    SYSTEM tablespace
B.    Stack Space
C.    Data file
D.    None of the above

Right Answer: A

Que.4. The size and content of the PGA is independent on the Oracle server options installed.
A.    True
B.    False

Right Answer: A

Que.5. Which area of PGA stores binding variables and runtime buffers information?
A.    SQL area
B.    Private SQL area
C.    Stack space
D.    Session area

Right Answer: B

Que.6. A database trigger is an alternative for
A.    Stored procedure
B.    Primary key for implementing referential integrity
C.    Foreign key for implementing referential integrity
D.    All of the above

Right Answer: C

Que.7. How many layers does the Oracle database have?
A.    1
B.    2
C.    3
D.    4

Right Answer: B

Que.8. Which type of index should be used on a fact table?
A.    A binary index
B.    A bitmap index
C.    A metadata index
D.    A database schema index

Right Answer:  B

Que.9. A data block is
A.    The place where all deleted records are persisted
B.    The largest logical storage unit ever available for any database block
C.    The smallest logical storage unit for a database object
D.    All of the above

Right Answer: C

Que.10. Which of the following statements regarding primary key is false?
A.    Primary key can have null values
B.    Primary key may contain duplicate values
C.    Primary key can not be applied for multiple columns
D.    All of the above

Right Answer: D

Que.11. The __________contains a set of tables and views that Oracle uses as a reference to the database.
A.    PGA
B.    Library cache
C.    Data dictionary
D.    SGA

Right Answer: A

Que.12. A ______________ is used to logically group data  together.
A.    Database
B.    Tablespace
C.    Datafiles
D.    Object

Right Answer: B

Que.13. What operator is used to prevent the error: `ORA-01427:single row sub query returns more than one row’?
A.    Use the IN operator
B.    Use the >= operator
C.    Use the CAN EXIST operator
D.    Use the = operator

Right Answer: A

Que.14. The redo log buffer and Shared pool are elements of ?
A.    PGA
B.    Buffer cache
C.    Both a and b
D.    SGA

Right Answer: D

Que.15. Indicate whether this statement is true or false. A foreign key column must contain unique values.
A.    True
B.    False

Right Answer: B

Que.16. Which of the following components comprise an oracle architecture?
A.    Database related background processes
B.    Tablespaces
C.    Datafiles
D.    All choices are correct

Right Answer: D

Que.17. What is the use of Library cache?
A.    Contains User information, such as user privileges
B.    Used to store shared SQL
C.    Log of changes made to the database
D.    All the choices are correct

Right Answer: B

Que.18. If the replication interval is smaller, there are few update conflicts
A.    True
B.    False

Right Answer: B

Que.19. Which of the following SQL operations demands the use of wild cards comparisons?
A.    IN
B.    BETWEEN
C.    EXISTS
D.    LIKE

Right Answer: D

Que.20. The basic memory structures associated with Oracle are the System Global Area (SGA) and the Program Global Area (PGA).
A.    True
B.    False

Right Answer: A

JavaScript MCQ Test

JavaScript MCQ Test - 1

Que.1. What is the purpose of <noscript> tag in Java Script?
A.    Prevents scripts on the page from executing.
B.     Enclose text to be displayed by non –JavaScript browsers.
C.    Suppresses the result to be displayed on the web page.
D.    None of the above.
Right Answer: B
Que.2. Java Script entities start with ___________and end with _____________
A.    Semicolon, colon
B.     Semicolon, Ampersand
C.    Ampersand, colon
D.    Ampersand, semicolon.
Right Answers: D
Que.3. Which of the following is a server-side Java Script object?
A.    Function
B.     File
C.    FileUpload
D.    Date
Right Answer: B
Que.4. Which of the following is a client-side Java Script object?
A.    Function
B.     File
C.    FileUpload
D.    Date
Right Answer: C
Que.5. Which of the following is the correct way for writing Java Script array?
A.    var  salaries = new Array(1:39438, 2:39839 3:83729)
B.     var  salaries = new (Array1=39438, Array 2=39839 Array 3=83729)
C.    var  salaries = new Array(39438, 39839,83729)
D.    var  salaries = new Array() values = 39438, 39839 83729
Right Answer: C
Que.6. File is server-side JavaScript object
A.    True
B.     False
Right Answer: B
Que.7. Which of the following syntax is correct to refer an external script called “formValidation.js”?
A.    <script href = “formValidation.js”>
B.     <script source = “formValidation.js”>
C.    <script name = “formValidation.js”>
D.    <script src = “formValidation.js”>
Right Answers: D
Que.8. JavaScript supports all boolean operators
A.    True
B.     False
Right Answer: B
Que.9. What is the alternate name for Java script?
A.    LimeScript
B.     Both a and d
C.    ECMScript
D.    ECMAScript
Right Answer: D
Que.10. What type of image map could be used with Java Script?
A.    Client-side image maps
B.     Server-side image maps.
C.    Both A and B
D.    Localhost image maps
Right Answer: A
Que.11. Is it possible to declare a variable in Java Script along its type?
A.    Yes
B.     No
Right Answer: A
Que.12. Which of the following are capable of Java Script functions?
A.    Returning multiple values
B.     Accepting parameters and returning values
C.    Accepting parameters
D.    All choices are correct
Right Answer: C
Que.13. Which of the following is not a valid JavaScript variable name?
A.    2java
B.     _java_and_java_names
C.    Javaandjava
D.    None of the above
Right Answer: A
Que.14. What java wrapper type is created when a JavaScript object is sent to Java?
A.    ScriptObject
B.     JavaObject
C.    Jobject
D.    JSObject
Right Answer: D
Que.15. Which of the following is correct to write “Hello World ” on the web page?
A.    System.out.println(“Hello World”)
B.     print(“Hello World”)
C.    document.write(“Hello World”)
D.    response.write(“Hello World”)
Right Answer: C
Que.16. How does Java Script store dates in objects of Date type?
A.    The number of  days since 1st, 1900
B.     The number of  seconds since January 1st, 1970
C.    The number of  milliseconds since January 1st, 1970
D.    The number of  picoseconds since January 1st, 1970
Right Answer: C
Que.17. Java script can be used for Storing the form’s content to a database file on the server.
A.    False
B.     True
Right Answer: A
Que.18. Which attribute needs to be changed to make elements invisible?
A. Visibility
B.  Visible
C. Invisibility
D. Invisible
Right Answer: A
Que.19. Which machine actually executed the Java Script?
A.    The web server
B.     The machine which is running a web server.
C.    Java Script engine
D.    Both A and C
Right Answer: B
Que.20. Which attribute is used to hold the Java Script Version?
A.    SCRIPT
B.     VERSION
C.    LANGUAGE
D.    VER
Right Answer: C