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

Alcohol is a stimulant. true or false

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

Explanation:

Alcohol is a drug.

Report Error

View Answer Workspace Report Error Discuss

Subject: Chemistry
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 2900
Q:

What has 4 Eyes But cannot see?

Answer

What has 4 Eyes But cannot see is Mississippi.


The wording of Mississippi has 4 'i''s. But it can't see.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer , Project Manager

8 2899
Q:

Who is the first woman lawyer to be appointed as Supreme court judge?

A) Indu Malhotra B) Fathima Beevi
C) R. Banumathi D) Ruma Pal
 
Answer & Explanation Answer: A) Indu Malhotra

Explanation:

Supreme Court collegium has selected senior advocate Indu Malhotra as the first woman lawyer to be directly appointed as a judge of the apex court.

Along with Malhotra, Uttarakhand High Court Chief Justice KM Joseph has also been promoted as a Supreme Court justice.

Malhotra holds the distinction of being only the second woman in Supreme Court’s history to be designated as a senior advocate in 2007.

In all, Malhotra is going to be the seventh woman judge since independence to make it to the Supreme Court.

At present, Justice R Banumathi is the lone woman judge in the apex court.

Report Error

View Answer Report Error Discuss

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

2 2899
Q:

The two broad categories of software are

A) Drivers and MS office B) Application and Spreadsheets
C) System and Application D) Utility programs and System
 
Answer & Explanation Answer: C) System and Application

Explanation:

The two broad categories of software in a computer are

1. System software
2. Application software

 

the_two_broad_categories_of_software_are1560849803.jpg image

System software controls how the system works and enables user to access all of the system hardware and application software

The OS, utility programs and drivers come under system software.

 

Application software are software used by the user to perform specific task. They are installed according to the user's requirements.

The word processor, web browser, players, spreadsheets etc... come under this 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

3 2898
Q:

Brazil-based bus body maker Marcopolo has entered into a Joint venture with which Indian Company to manufacture fully-built buses and coaches?

A) Swaraz Mazda B) Ashok Leyland
C) Eicher D) Tata Motors
 
Answer & Explanation Answer: D) Tata Motors

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

8 2897
Q:

What is the world’s oldest surviving republic?

Answer

San Marino

Report Error

View answer Workspace Report Error Discuss

Subject: World History

5 2896
Q:

which of the following has the longest wavelength

A) Infrared radiation B) γ-radiation
C) Ultraviolet radiation D) Visible radiation
 
Answer & Explanation Answer: A) Infrared radiation

Explanation:

Infrared radiation

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst

4 2896