Tag: programming languages

Questions Related to programming languages

  1. This code will hang

  2. This code will print B.

  3. This code will print A.

  4. Compilation Error


Correct Option: A

LINE:1 i=1, line=5; LINE:2 for(i=1;i<=line;i++) LINE:3 { LINE:4 for(j=1;j<=line- i;j++) LINE:5 { LINE:6 printf(" " ); LINE:7 } LINE:8 for(j=1;j<=i;j++) LINE:9 { LINE:10 printf(""); LINE:11 } LINE:12 line--; LINE:13 printf("\n"); LINE:14 } this will print: * * *** **** ***** Now change the code in such a way that by using only one key for once such that this code will print: * * * * * * * * * * * * * * * In which line you need to change the code using that key?

  1. LINE15

  2. LINE10

  3. LINE13

  4. LINE9


Correct Option: B

The scrolling option in IDEAL can be changed to cursor

  1. True

  2. False


Correct Option: A
  1. 1-60 & 1-72

  2. 1-62 & 1-72

  3. 1-70 & 1-80

  4. 1-72 & 1-80


Correct Option: D

The command to increase the command line from 1 to 3 ie => to => => => is

  1. SET COMMAND 3

  2. SET COMMAND 3 LINE

  3. SET COMMAND LINE 3

  4. SET LINE COMMAND 3


Correct Option: C

Which command displays the date on the command line?

  1. DATE

  2. TIME

  3. DATE-TIME

  4. $DATE


Correct Option: B

ERROR is internal variable to mark the error within a dataset?

  1. True

  2. False


Correct Option: B