Call Support +91-85588-96644
TCYonline

Login

Sign Up

Please enter a Username or Email ID
Please enter a password
Keep me logged in
Please enter your name
Please enter your mobile number
You can't leave Captcha Code empty
By submitting this form, you agree to the Terms & Privacy Policy.
OR

Sign Up via Facebook

Sign Up via Google

Sign Up via Twitter

Download Software
Tests given

Download TCY App

App Image

All posts related to Programming

P K Hore
Shared from Cobol Basics - 1 on Jul 17, 2020 10:58 AM

In COBOL, which symbol(s) indicate(s) a comment line?

 
@
*
/
Only 1 and 2
Only 2 and 3
Please type your answer before submitting.

Your answer is wrong. '/' in column 7 means - this is the instruction to compiler. When you want to print the program, the code will move to next page. In real-time projects many people are giving at the end of the para-just for coding clarity. So, for comment line '*' is the only character to be put in column 7. So, the answer should be 2 (only).

Apporva Arya
Shared from MCA Mock - 1 on May 11, 2018 2:03 PM

What would be the output of the following program?
main( )
{
char str[ ] = ?Part-time musicians are
semiconductors? ;
int a = 5 ;
printf ( a > 10 ? "%50s" : "%s", str ) ;
}

 
Part time musicians are semiconductors
Part-time musicians are semiconductors
Error
None of the above
Please type your answer before submitting.

Whats diff in option a and b?

Divya Sharma
Shared from Computers Test - 5 on Mar 27, 2016 12:25 PM

What is the value of SUM after executing the following algorithm?

SUM 20
I 1
Repeat
SUM SUM + 3 * I
I I + 2
UNTIL I > 10

 
125
95
75
15
Please type your answer before submitting.

125

Rakhshanda Shaikh
Shared from MCA Mock - 2 on Mar 26, 2016 2:00 PM

What will be the output # include < stdio.h>

main ( )
{ int x, y, z:
x = y = z = 1
z = ++ x && ++y &&+zz;
printf ("x = %d y = %d z = %d n", x, y, z); }

 
x = 0, y = 0, z = 0
x = 1, y = 1, z = 1
x = 2, y = 2, z = 2
None of these
Please type your answer before submitting.

None of these

Naresh
Shared from C Programming on Nov 13, 2015 10:41 PM

What would be the output of following program?
int main()
{
int a[5]={56,78};
printf (''%d'' ''%d'' ''%d'' ,a[1],a[2],a[3]);
}

 
Garbage value
567878
56780
7800
Please type your answer before submitting.

Here in this question the array start with zero perfectly..but a{1}intilizaes with 78..can any one explain....divya can u explain