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:

What molecule makes the trunk of a tree sturdy?

A) Disaccharide B) Fructose
C) Cellulose D) Glucose
 
Answer & Explanation Answer: C) Cellulose

Explanation:

Cellulose is closely related to sugar and rated as a carbohydrate, which means that it is a compound of carbon, hydrogen and oxygen. The woody trunk of a tree is no more than dead cell walls.

tree1533617490.jpg image

Trunk of a tree refers to the main wooden axis of a tree that supports the branches and is supported by and directly attached to the roots. The molecule that makes it sturdy is cellulose.

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

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

Monitoring and Controlling Process Group

What are the Project Management Processes included in Monitoring and Controlling Process Group?

Answer


    • Monitor and Control Project Work

    • Integrated Change Control

    • Scope Verification

    • Scope Control

    • Schedule Control

    • Cost Control

    • Perform Quality Control

    • Manage Project Team

    • Performance Reporting

    • Manage Stakeholders

    • Risk Monitoring and Control

    • Contract Administration


Report Error

View answer Workspace Report Error Discuss

0 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:

SEBI is evaluating whether ICO (Initial Coin Offerings) can be brought under its purview. ICO is related to ______.

 

A) Dollars B) Pounds
C) Rupees D) Cyptocurrency
 
Answer & Explanation Answer: D) Cyptocurrency

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

4 2924
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 2924
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