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

The book ' Redesigning the Aeroplane While Flying : Reforming Institutions' is written by

Answer

Arun Maira

Report Error

View answer Workspace Report Error Discuss

5 2925
Q:

A push or pull on an object is called

A) Force B) Weight
C) Opposition D) None of the above
 
Answer & Explanation Answer: A) Force

Explanation:

The push or pull on an object that causes it to move or stop or change direction is called as Force.

Report Error

View Answer Report Error Discuss

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

2 2925
Q:

Which of the following is a renewable source of energy

A) Natural gas B) Coal
C) Wind D) Oil
 
Answer & Explanation Answer: C) Wind

Explanation:

The energy sources that are constantly being replenished, such as sunlight, wind, and water. This means that we can use them as much as we want, and we do not have to worry about them running out. Additionally, renewable energy sources are usually much more environmentally friendly than fossil fuels. Overall, they release very few chemicals, like carbon dioxide, that can harm the environment.


Most of this energy comes from fossil fuels, such as coal, oil, and natural gas. These are nonrenewable energy sources, which means that if we use them all up, we can never get more during our lifetime. Fossil fuels also contribute greatly to global climate change by releasing carbon dioxide into the air when they are burned.

Report Error

View Answer Report Error Discuss

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

2 2925
Q:

Which of the following commands will allow a Linux on iSeries administrator to quickly scan backup tapes for files saved via a tar command on a Linux system?

A) The Linux command mt B) The Linux command cpio
C) The OS/400 command RST option(*print) D) The OS/400 command DSPTAP option(*savrst)
 
Answer & Explanation Answer: B) The Linux command cpio

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2925
Q:

What sugar is found in RNA?

A) Deoxyribose B) Ribose
C) Pentose D) Sucrose
 
Answer & Explanation Answer: B) Ribose

Explanation:

RNA - ribonucleic acid is a type of nucleic acid. The sugar contained in it is called Ribose.

Report Error

View Answer Report Error Discuss

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

4 2925
Q:

Organisms that depend only on raw plant products are said to be 

A) herbivorous B) vegetarian
C) carnivorous D) omnivorous
 
Answer & Explanation Answer: A) herbivorous

Explanation:

Herbivorous organisms are those that take for their food, plant parts like leaves raw in contrast to vegetarian, which means that plant products are taken raw or after being cooked.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2923
Q:

A Book always has

A) Preface B) Text
C) Index D) Page
 
Answer & Explanation Answer: D) Page

Explanation:

A Book always has Pages. Without pages it can't be called as a book. A book can be either with or without preface, text or index but it can't be without a page.

 

Hence, A Book always has page.

Report Error

View Answer Report Error Discuss

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

1 2923