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

Which animal dont have vocal cords?

A) Dog B) Horse
C) Giraffe D) Donkey
 
Answer & Explanation Answer: C) Giraffe

Explanation:

Giraffe have no vocal cords.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

8 2840
Q:

What is the difference between inbound process and outbound process?

Answer

Inbound customer service agents handle incoming calls from customers for:


- Requests for help


- Inquiries or requests for information


- Placing orders, in product purchases


- Applications for services


- Filing complaints


Outbound customer service agents make calls to random potential customers to sell a service or product. These agents can also be called as telemarketing executives.

Report Error

View answer Workspace Report Error Discuss

Subject: Call Center

4 2840
Q:

If the speed of an object moving along a straight line keeps changing, its motion is said to be _________.

A) Uniform B) Periodic
C) Circular D) Non-uniform
 
Answer & Explanation Answer: D) Non-uniform

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

7 2840
Q:

The term aerotolerant anaerobe refers to an organism that

A) uses oxygen or grows without oxygen. B) requires more oxygen than is present in air.
C) does not use oxygen but tolerates it. D) requires less oxygen than is present in air.
 
Answer & Explanation Answer: C) does not use oxygen but tolerates it.

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2839
Q:

A challenge that modern presidents face is

A) issuing executive orders. B) granting pardons.
C) recognizing foreign nations. D) leading their political party.
 
Answer & Explanation Answer: D) leading their political party.

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2838
Q:

Iveco, Part of the Fiat group, holds 15 per cent stake in an Indian automobile company. The  company in the question is 

A) AShok Leyland B) Hindustan Motors
C) Tata Motors D) Eitcher
 
Answer & Explanation Answer: A) AShok Leyland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

7 2838
Q:

STUFF and REPLACE are used to replace characters in a string

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

Explanation:

They both are used to replace characters in a string

Report Error

View Answer Workspace Report Error Discuss

0 2838