Searching for "type."

Q:

In the following passage, some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.

 

Left to itself, then, attention _____________ obeys natural laws and follows the line of least resistance. _______________ far the larger portion of our attention is of this type. Thought often runs on hour after hour when we are neither conscious of effort _____________ struggle to compel us to cease thinking about this thing and begin thinking about _________. Indeed, it may be doubted ___________ this is not the case with some persons for days at a time, instead of hours. The things that present themselves to the mind are the things which occupy it; the character of the thought is determined by the character of our interests.

 

be doubted ___________ this is not the case

 

A) weather   B) wither  
C) wether   D) whether
 
Answer & Explanation Answer: D) whether

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

Q:

In the following passage, some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.

 

Left to itself, then, attention _____________ obeys natural laws and follows the line of least resistance. _______________ far the larger portion of our attention is of this type. Thought often runs on hour after hour when we are neither conscious of effort _____________ struggle to compel us to cease thinking about this thing and begin thinking about _________. Indeed, it may be doubted ___________ this is not the case with some persons for days at a time, instead of hours. The things that present themselves to the mind are the things which occupy it; the character of the thought is determined by the character of our interests.

 

thinking about _________. Indeed,

 

A) this   B) these  
C) them   D) that
 
Answer & Explanation Answer: D) that

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

Q:

In the following passage, some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.

 

Left to itself, then, attention _____________ obeys natural laws and follows the line of least resistance. _______________ far the larger portion of our attention is of this type. Thought often runs on hour after hour when we are neither conscious of effort _____________ struggle to compel us to cease thinking about this thing and begin thinking about _________. Indeed, it may be doubted ___________ this is not the case with some persons for days at a time, instead of hours. The things that present themselves to the mind are the things which occupy it; the character of the thought is determined by the character of our interests.

 

conscious of effort _____________ struggle to compel

 

A) no   B) not  
C) none D) nor
 
Answer & Explanation Answer: D) nor

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

Q:

In the following passage, some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.

 

Left to itself, then, attention _____________ obeys natural laws and follows the line of least resistance. _______________ far the larger portion of our attention is of this type. Thought often runs on hour after hour when we are neither conscious of effort _____________ struggle to compel us to cease thinking about this thing and begin thinking about _________. Indeed, it may be doubted ___________ this is not the case with some persons for days at a time, instead of hours. The things that present themselves to the mind are the things which occupy it; the character of the thought is determined by the character of our interests.

 

least resistance. _______________ far the larger portion

 

A) By   B) with  
C) Along   D) Such
 
Answer & Explanation Answer: A) By  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

Q:

In the following passage, some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.

 

Left to itself, then, attention _____________ obeys natural laws and follows the line of least resistance. _______________ far the larger portion of our attention is of this type. Thought often runs on hour after hour when we are neither conscious of effort _____________ struggle to compel us to cease thinking about this thing and begin thinking about _________. Indeed, it may be doubted ___________ this is not the case with some persons for days at a time, instead of hours. The things that present themselves to the mind are the things which occupy it; the character of the thought is determined by the character of our interests.

 

Left to itself, then, attention _____________ obeys natural laws

 

A) simple   B) simply  
C) simplification   D) simplicity
 
Answer & Explanation Answer: B) simply  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

Q:

Difference between %TYPE and %ROWTYPE.

Answer

%type is used to declare a field of a table while %rowtype is used to declare a record with the same type as specified in that table, view or cursor.


Example of %type:


DECLARE


         v_EmployeeName emp.ename%TYPE


 


Example of %rowtype


DECLARE


          v_empployee emp%ROWTYPE;

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

Q:

Write a c program to create dos command type.

Answer

#include
int main( int count,char * argv[] ) {
    int i;
    FILE *ptr;
    char *str;
    char ch;
    if( count == 1) {


         printf( "The syntax of the command is incorrect.\n" );
    }
    for( i=1;i<cout;i++ ){
         ptr=fopen(argv[i],"r");
         if(ptr==NULL){
             printf("The system cannot find the file specified.");
             if(count>2)
                 printf("\nError occurred while procesing : %s.\n",argv[i]);
         }
         else {
             if(count>2) {
                 printf("%s\n\n",argv[i]);
             }
             while((ch=getc(ptr))!=-1)
                 printf("%c",ch);
         }
         fclose(ptr);
    }
    return 0;
}


 


Save the above file as open.c, compile and execute the go to command mode (current working directory) and write: open xy.c (xy.c any file present in that directory)
To run the open command in all directories and drive you will have to give the path of current working directory in command mode. Write:
C:tc\bin>PATH c:\tc\bin
Now press enter key. Now your open command will work in all directory and drive.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

You develop an inventory management application called XYZManagement that will call a Microsoft SQL Server stored procedure named sp_GetDailyXYZSales. The stored procedure will run a query that returns your daily sales total as an output parameter. This total will be displayed to users in a message box.


Your application uses a SqlCommand object to run sp_GetDailyXYZSales. You write the
following code to call sp_GetDailyXYZSales:
SqlConnection cnn = new SqlConnection(myConnString);
SqlCommand cmd = new SqlCommand(“sp_GetDaily XYZ Sales”, cnn);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter prm = cmd.Parameters.Add(“@ItemTotal”,SqlDbType.Int);
prm.Direction = ParameterDirection.Output;
cnn.Open();
cmd.ExecuteNonQuery();


Now you must write additional code to access the output parameter. Which code segment should you use?

A) MessageBox.Show(?Total is: ? + cmd.Parameters[?@Output?].Value.ToString()); B) MessageBox.Show(?Total is: ? + cmd.Parameters[?@Output?].ToString());
C) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal? D) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal?
 
Answer & Explanation Answer: C) MessageBox.Show(?Total is: ? + cmd.Parameters[?@ItemTotal?

Explanation:

The @ItemTotal parameter is declared as an output parameter with SQL Server data type INT.We use the Value property of the SQLParameter class to retrieve the value of this parameter. We must also convert the INT value to a string value with the ToString method. We then supply this string to the MessageBox.Show method. 

 

Incorrect Answers


Option A, B:
The @ItemTotal parameter is the output parameter. Using @Output this way is incorrect. Output is a keyword and no variable named @Output has been declared.


Option D:
We must use the Value method to retrieve the value of the parameter..

Report Error

View Answer Report Error Discuss