23/06/2016

Top 5 Computer Programming CP bits answers-S1


Please don’t forget to G+1 and/ Like and/ Share. Hi, welcome to nrrbeassistance.blogspot.comVery Important and most useful; frequently asked Computer Programming (CP) interview bits and written test questions and answers set 1.

1. scanf returns 
A. Error 
B. No. of characters properly printed 
C. Number of successfully matched and assigned input items 
D. Nothing 

2. Address stored in the pointer variable is of type 
A. int   B. char   C. float   D. double 

3. union test ( int x; char arr[8]; int y; ); int main() ( printf("%d", sizeof(union — test)); return 0; ) Predict the output of above program. Assume that the size of an integer is 4 bytes and size of character is 1 byte. 
A.16    B. 12    C. 8   D. compiler error 

4. What is the output of this C code? #include <stdio.h> int main() ( short int i; scanf("%*d", &i); printf("%hd", i); return 0; ) 
A. Some garbage value 
B. Compilation error 
C. Depends on the compiler 
D. Whatever user types 

5. The statement int **a; is 
A. Syntactically wrong but semantically correct 
B. Wrong both syntactically and semantically 
C. Correct both syntactically and semantically 
D. Syntactically correct but semantically wrong 

Answers: C, A, C, A, C.  Learn More

Alerts: Dear viewer, “Hard work never fails”. Along with hard work include smart work for your goal. Your hard work and our smart work, guarantee success. To get in touch with you, we have created a WhatsApp Group named “MCQs FAQs Tips - Dumps PDF”. Kindly send a message to +91-7893356131 as “add to MCQs FAQs Tips - Dumps PDF" to add you to this group.

Updates: Don’t miss, what you want? So kindly, 1. Like our Facebook, 2. Subscribe by E-mail, 3. Follow our Google+, 4. Twitter 5. YouTube, 6. Download our Toolbar, 7. Install our App and 8. Others.

Help: If you have any suggestions, requests and problems, please comment below or ask us here.

Encourage us: Please don’t forget to G+1 and/ Like and/ Share and/ Recommend… thank you and all the best / best of luck for your bright future.

Our motto: Serve poor and needy whole heartedly – Nareddula Rajeev Reddy (NRR) and his team.

* Dear viewer, ask us what you want..?
EmoticonEmoticon

Request Admin

First search (top), didn't find; ask us, what you want? As a comment. ASAP, we will provide it...

*Interested to become co-admin, click here.