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 3021
Q:

Are you willing to travel?

Answer

Most people say "Yes" and do not add more to it. Use this opportunity to market yourself and express interests and activities that are aligned with job role you are applying.

Report Error

View answer Workspace Report Error Discuss

Subject: Common Interview

3 3021
Q:

Claude Bernard first recognized

A) plant stomata opening and closing to maintain homeostasis B) chemical reactions of enzymes
C) separate fluids outside and inside the cell D) feedback loops
 
Answer & Explanation Answer: A) plant stomata opening and closing to maintain homeostasis

Explanation:

Claud_Bernard1533194164.jpg image

 

Claude Bernard was a French physiologist, who first recognised plant stomata opening and closing to maintain homeostasis.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

1 3021
Q:

Largest sea in the world

A) Mediterranean sea B) Philippine sea
C) Black sea D) Red sea
 
Answer & Explanation Answer: B) Philippine sea

Explanation:

Largest sea in the world is Philippine sea.

Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 3019
Q:

Correct word of ahmpabja?

Answer

ABP Majha is the correct word of the given jumbled word.

Report Error

View answer Workspace Report Error Discuss

Subject: English Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO

0 3019
Q:

The reactivity of an atom arises from

A) the existence of unpaired electrons in the valence shell B) the potential energy of the valence shell
C) the average distance of the outermost electron shell from the nucleus D) the sum of the potential energies of all the electron shells
 
Answer & Explanation Answer: A) the existence of unpaired electrons in the valence shell

Explanation:

The reactivity of an atom arises from the existence of unpaired electrons in the valence shell.

Report Error

View Answer Report Error Discuss

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

0 3019
Q:

Which event occurs during interphase?

A) Centrioles appear B) Spindle fibers begin to form
C) The cell grows D) Centromeres divide
 
Answer & Explanation Answer: C) The cell grows

Explanation:

The cell carries out the metabolic processes and it grows during interphase.

The cell cycle has three phases that must occur before mitosis, or cell division happens. These three phases are collectively known as interphase. They are G1, S, and G2.

Report Error

View Answer Report Error Discuss

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

2 3018
Q:

When you have three you have three, when you have two you have two, when you have one you have none? What is it?

Answer

CHOICES (or) OPTIONS are what When you have three you have three, when you have two you have two, when you have one you have none. 

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams
Job Role: Bank Clerk

13 3018