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

Which mosque is considered to be the style of Bengal style in Agra?

A) Nagina Masjid B) Moti Masjid
C) Jama Masjid D) Badshahi Masjid
 
Answer & Explanation Answer: A) Nagina Masjid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 2912
Q:

Cytoplasm contains all the organelles.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

Cytoplasm does not contains all the organelles.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

0 2911
Q:

Where are chromatids found in a cell?

A) Anaphase B) Metaphase
C) Prophase D) None of the above
 
Answer & Explanation Answer: B) Metaphase

Explanation:

A chromatid is one copy of a newly copied chromosome which is still joined to the original chromosome by a single centromere.

The two identical copies—each forming one half of the replicated chromosome are called chromatids.

Chromonema is the fibre-like structure in prophase in the primary stage of DNA condensation. In metaphase, they are called chromatids.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

1 2910
Q:

Which of the following planets is known as Earth's twin?

A) Mars B) Saturn
C) Uranus D) Venus
 
Answer & Explanation Answer: D) Venus

Explanation:

Venus is known as earth's twin because of its closeness to the earth with respect to size, mass(weight) and density.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2910
Q:

Software designed for a specific purpose is called as

A) System software B) Application software
C) Specific software D) None of the above
 
Answer & Explanation Answer: B) Application software

Explanation:

Software designed for a specific purpose is called as Application software.

Report Error

View Answer Report Error Discuss

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

5 2910
Q:

The rate of flow of electric charge is measured in

A) ampere B) coulomb
C) ampere/coulomb D) ampere-coulomb
 
Answer & Explanation Answer: A) ampere

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2909
Q:

Where is the Forest Reserve Institute of India located

A) Bhopal B) Dehradum
C) Lucknow D) Delhi
 
Answer & Explanation Answer: B) Dehradum

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

7 2909