Questions

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

0 2648
Q:

The technique of DNA fingerprinting in human was developed for first time by _________

A) Lalji Singh B) Alec Jeffreys
C) R. Ericson D) J. Black
 
Answer & Explanation Answer: B) Alec Jeffreys

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 2647
Q:

The state whose co-operative bank became the first cooperative bank of the country to launch its own 'Ru Pay' ATM -cum- debit card recently

Answer

Himachal pradesh 

Report Error

View answer Workspace Report Error Discuss

1 2647
Q:

Which is the first bank established in India?

A) General Bank of India B) Bank of Calcutta
C) Bank of Hindustan D) Bank of Baroda
 
Answer & Explanation Answer: C) Bank of Hindustan

Explanation:

The first bank established in India in the year 1770 was Bank of Hindustan followed by the General Bank of India in the year 1786. The State Bank of India (SBI) was the still existing oldest bank which was established in the year 1806 in the name of Bank of Calcutta.

Which_is_the_first_bank_established_in_India1559281065.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2646
Q:

Sponges are most accurately described as

A) marine predators B) chemoautrophs
C) filter feeders D) freshwater scavengers
 
Answer & Explanation Answer: C) filter feeders

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

3 2646
Q:

Improve the following code using typedef.

struct node

{

      int data1;  float data2;

       struct node *left;

       struct node *right;

};

struct node *ptr;

ptr = (struct node *) malloc (sizeof (struct node) ); 

Answer

typedef struct node * treeptr


typedef struct node


{


         int data1;


         float data2;


         treeptr *left;


         treeptr *right;


}treenode;


treeptr ptr;


ptr = ( treeptr ) malloc ( sizeof ( treenode ) );

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2645
Q:

Which of the statements given below are correct?

A) Alexander Norén won the Golf 2017 Masters Tournament.

B) In 2017, Daniel Ricciardo raced in Formula One for Mercedes.

C) In 2017 Pro Kabaddi League, Suraj Desai played for Jaipur Pink Panthers.

 

A) Only A B) Only B
C) B and C D) None of these
 
Answer & Explanation Answer: D) None of these

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

2 2645
Q:

A team of scientists from which organisation has entered China, to probe the source of Coronavirus?

 

A) CDC B) FAO
C) John Hopkins University D) WHO
 
Answer & Explanation Answer: D) WHO

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2645