GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 4 of 44    Print  
consider the statement (incomplete)
IF(A NUMERIC)
DISPLAY A
the variable A can be
a.NUMERIC
b.ALPHABETIC
c.ALPHANUMERIC
d.NUMERIC OR ALPHANUMERIC

  
Total Answers and Comments: 2 Last Update: June 15, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 13, 2006 05:46:42   #1  
urvi shah        

RE: consider the statement (incomplete) IF(A NUME...
d is the right ans.
 
Is this answer useful? Yes | No
June 15, 2006 11:20:18   #2  
sharmilabit Member Since: June 2006   Contribution: 3    

RE: consider the statement (incomplete) IF(A NUME...
D. NUMERIC OR ALPHANUMERIC IS THE RIGHT ANSWER ... IF A IS NUMERIC THEN IT WILL GET DISPLAYED OTHERWISE NOTHING WOULD BE DISPLAYED.
 
Is this answer useful? Yes | No

 Related Questions

Consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWANCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWANCES has a value of 250, what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

Consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VALUE 123.45 after the statement MOVE W-A TO W-B what will be W-B value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

Consider the statement (incomplete) IF(A NUMERIC) DISPLAY A the variable A can be a.NUMERIC b.ALPHABETIC c.ALPHANUMERIC d.NUMERIC OR ALPHANUMERIC

What if any, is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

Observe the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

Study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

Consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!"What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

Study the five expressions and the class to which they belong: S.N. Expression Class 1 "SPACES" Figurative constant 2. "Depreciation Schedule Non-numeric literal 3. "12%" Non-numeric literal 4. INTEREST-DUE Non-numeric literal 5. ZEROES Figurative constant Which of the following statement is true? (a) 1 and 3 are incorrect (b) 1 and 4 are incorrect (c) 3 and 4 are incorrect (d) All are correct

What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1


 Sponsored Links

 
Related Articles

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

What are the limitations with switch statement?

Switch statement is a powerful statement used to handle many alternatives and provides good presentation for C program. But there are some limitations with switch statement which are given below: Logical operators cannot be used with switch statement. For instance case k>=20: is not allowe
 

goto Statement

Why to avoid goto in C C has goto statement but one must ensure not to use too much of goto statement in their program because its functionality is limited and it is only recommended as a last resort if structured solutions are much more complicated. First let us understand the goto statement, its
 

Variable, Constants and Data types in C++

Variable Constants and Data types in C In this C tutorial you will learn about variable constants and data types in C rules for defining variable name short int int long int float double long double char bool declaring variables and constants mosgoogle Variables A variable is the storage location in
 

Quality Aspects to Check While Writing COBOL Program

Quality Aspects to Check While Writing COBOL Program This article gives a general list which the programmer must check while delivering programs developed in COBOL This can also be used as a general checklist for checking quality of the COBOL program developed mosgoogle Quality is a vital factor fo
 

CSS Tutorials : Lesson 12 Elements Display

CSS Tutorials Lesson 12 Elements Display In this tutorial you will learn about Cascading Style Sheets CSS Elements Display Float Position Visibility Cursor Vertical align and z index mosgoogle The display properties enable you to set the way to display elements and the position of the element rela
 

COBOL Interview Questions

COBOL Interview Questions This article provides Mainframe Interview Questions covering Cobol questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle COBOL 1 a What is the difference between write and move in COBOL b What i
 

ASP.NET : Using a Grid to Display Detail Information

ASP NET 2 0 Free Tutorials Using a Grid to Display Detail Information In this tutorial you will learn how to use a GridView Control to display the details of the item selected in the DropDown list and test the page mosgoogle We shall now use a GridView to display the details of the item selected in
 

Report Builder 2.0 - Add a Gauge to Display Average

Add a gauge to display this average In this section you will add a single gauge in the same column as the others but outside the group and set its value to represent the group average of the second column mosgoogle 1. Click Insert Gauge and drop it on the intersection of the last row. This row is ou
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape