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

Which dynasty was in power throughout the 1500's in China?

A) Han B) Ming
C) Manchu D) Yuan
 
Answer & Explanation Answer: B) Ming

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

1 2998
Q:

Have you studied buses? What types?

Answer

There are three types of buses.


Address bus: This is used to carry the Address to the memory to fetch either Instruction or Data.


Data bus: This is used to carry the Data from the memory.


Control bus: This is used to carry the Control signals like RD/WR, Select etc.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2998
Q:

A man was slowly counting but unfortunately he miscounted. A little later he suffered a sharp pain is his back. Why?

Answer

The man want to buy a shirt went to a shop. He was counting the pins as he removed them from a new shirt. unfortunately, he missed one and wore.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams

11 2997
Q:

Which of the following books was written by Gandhiji

A) Discovery of India B) My Experiments with Truth
C) India wins Freedom D) Freedom at Midnight
 
Answer & Explanation Answer: B) My Experiments with Truth

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 2997
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 2997
Q:

What is the biggest island in the Caribbean?

Answer

Cuba

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

1 2997
Q:

In R-DBMS, the data is organized in the form of _____.

A) Hierarchical structure B) Tabular structure
C) Linked structure D) All of the above
 
Answer & Explanation Answer: B) Tabular structure

Explanation:

Data is organized in the form of row and columns, thus it is in tabular structure.

Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification

5 2997