0

architecture Online Quiz - 10

Description: architecture Online Quiz - 10
Number of Questions: 20
Created by:
Tags: architecture
Attempted 0/20 Correct 0 Score 0

Location to keep “hibernate.cfg.xml” so that it gets picked up during startup?

  1. Lib Directory of Java Home.

  2. Lib Directory of Application/Web Server.

  3. Source Directory of the Hibernate Project.

  4. None of the above.


Correct Option: C

---------------------- Objects produce --------------- Objects that can be used for Commits and Rollbacks in Hibernate to implement transaction management

  1. SessionFactory, Session

  2. Session, Transaction

  3. Transaction, SessionFactory

  4. Transaction, Session


Correct Option: B

This Class represents a single-threaded unit of work in Hibernate?

  1. SessionFactory

  2. Session

  3. Transaction

  4. None of the Above.


Correct Option: B

This class is a thread-safe global object, instantiated once in Hibernate

  1. SessionFactory

  2. Session

  3. Transaction

  4. None of the Above.


Correct Option: A

What is Automatic Dirty Checking in Hibernate?

  1. Process of monitoring and updating only objects that have changed.

  2. Process of calling the update () and save () methods explicitly.

  3. Process of releasing memory to heap which is no longer accessible from any live thread.

  4. None of the above.


Correct Option: A

A simple java application uses Hibernate core to access db. Which of the following statements are true?

  1. Hibernate gets initialized when the application starts.

  2. Hibernate gets initialized when one calls first db access Query object.

  3. Hibernate gets initialized when a SessionFactory is created.

  4. Hibernate gets initialized when first session gets created.


Correct Option: C

What is a Kernel?

  1. acts as an interface between the user and the kernel.

  2. is the hub of the operating system.

  3. minimal operating system that performs only the essential functions of an operating system.

  4. None of the above.


Correct Option: B

Command to change permission to a file biglist with Read and Execute access alone for all the Users?

  1. chmod 555 biglist

  2. chmod 777 biglist

  3. chmod 111 biglist

  4. chmod 561 biglist


Correct Option: A

How the Directories will be listed on execution of the Command [$ls –A] ?

  1. Displays nonprintable characters in an octal (\nnn) notation.

  2. Displays only the information for the directory named.

  3. Sorts output vertically in a multicolumn format.

  4. Lists all entries except . (dot) and .. (dot-dot).


Correct Option: D

What will be output for the following cut command taking as input the below file? $cat file 2273|ravi |chennai |ind $cut –d’|’ -f 2 file

  1. 2273

  2. chennai

  3. ravi

  4. None


Correct Option: C

What will the uniq Command [$uniq –d file] does ?

  1. Non repeated line

  2. Repeated line

  3. Counting the frequency of the line

  4. None.


Correct Option: B

ls –lqr

  1. Lists the file or directory contents that the link references

  2. Lists the name in each slot for each directory specified in the Directory parameter.

  3. Displays nonprintable characters in file names as a ? (question mark) and Reverses the order of the sort.

  4. Lists all subdirectories recursively.


Correct Option: C

Output of the grep command? grep "^[a-zA-Z]" pgm.s

  1. This displays every line in pgm.s whose first character is not a #.

  2. This displays every line in pgm.s whose first character is a letter.

  3. This displays every line in pgm.s whose first character is a Numeric.

  4. None.


Correct Option: B
  1. deletes the lines starting with happy.

  2. replaces each occurrence of the word happy found in the file chap1 with the word enchanted.

  3. displays each line in the file chap1 that contains the word happy.

  4. None.


Correct Option: B
  1. This sets the COUNT variable to the value given by the (+) operator.

  2. Concatenates the Given Expression inside Quotes.

  3. This adds 1 to the shell variable $COUNT.

  4. None.


Correct Option: C

What’s the purpose of bc command in Unix?

  1. Provides an interpreter for arbitrary-precision arithmetic language.

  2. Finds lines in files that match a pattern and performs specified actions on those lines.

  3. Searches a file for a pattern.

  4. Evaluates arguments as expressions.


Correct Option: A

Output of the AWK Command? Consider the below contents of the file named testfile. smawley, andy smiley, allen smith, alan smithern, harry smithhern, anne smitters, alexis EOF awk '/smith+ern/' testfile

  1. print to standard output of all records that contained an occurrence of the string smi

  2. prints to standard output any record that contained a string with the characters smit, followed by one or more h characters, and then ending with the characters ern.

  3. prints to standard output of all records that contain the characters smit, followed by zero or one instance of the h character.

  4. prints to standard output of all records that contained the string smi or smit.


Correct Option: B
  1. Displays information about all users currently on the local system.

  2. Displays the path name of the working directory.

  3. Counts the number of lines, words, bytes, or characters in a file.

  4. Displays the status of the last executed command.


Correct Option: A

To see the list of Jobs running in background or suspended jobs?

  1. ps

  2. kill

  3. jobs

  4. fg


Correct Option: C

What does the below Command Line Argument Does? $#

  1. Process number of current process.

  2. Process number of background process.

  3. All arguments on command line.

  4. Number of positional parameters.


Correct Option: D
- Hide questions