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

What is the difference between asset management and invest management?

Answer

Investment and asset are really close in meaning. Investment is when you put your money in stock, bond or other financial instruments. Whereas Asset is what you own generally reffered to land, proprietorship , factory, etc.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

2 2843
Q:

Red Indians called this local wind  Ice Eater?

A) Mistral B) Chinook
C) Foehn D) Haramattan
 
Answer & Explanation Answer: B) Chinook

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2843
Q:

Which online security campaign has been launched by Google India to safeguard internet users?

A) #SecurityCheckKiya B) #InternetSafetyKiya
C) #OnlineSecurityKiya D) #SecureInternetKiya
 
Answer & Explanation Answer: A) #SecurityCheckKiya

Explanation:

Google has launched new online security campaign #SecurityCheckKiya in India to promote security awareness among general public. The purpose of the campaign is to protect young and first-time web users from account hijacking, safeguard Android devices from malicious apps and secure all their personal data if they lose their device.

Report Error

View Answer Report Error Discuss

2 2843
Q:

Answer the following puzzle

Answer

Hour hand points to 8


Explanation:


Starting with the top clockface, and moving clockwise around the others, the minute hand moves forward 15 minutes, while the hour hand moves back 2 hours each time.

Report Error

View answer Workspace Report Error Discuss

Subject: Clock puzzles

6 2843
Q:

Which one of the following National Highways is the longest

A) NH-2 B) NH-7
C) NH-8 D) NH-15
 
Answer & Explanation Answer: B) NH-7

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 2842
Q:

How do we now Know the company founded as the Battlecreek Toasted Cornflake Company in 1906?

Answer

Kellogg's

Report Error

View answer Workspace Report Error Discuss

0 2842
Q:

Magnetic field lines about a current-carrying wire

A) circle the wire in closed loops B) extend radially from the wire
C) both of these D) None of the above
 
Answer & Explanation Answer: A) circle the wire in closed loops

Explanation:

Electric current produces a magnetic field. This magnetic field can be visualized as a pattern of circular field lines surrounding a wire.

Report Error

View Answer Report Error Discuss

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

3 2842