Top 6 Computer Programming CP bits answers-S2

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

1. The purpose for mode w+b in file operation is 
A. create a binary file for write 
B. open a binary file for reading/writing 
C.create a binary file for read/write 
D. open a binary file for writing 

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

3. Pointer is special kind of variable which is used to stored ____ of the variable. 
A. address    
B. data type    
C. name    
D. value 

4. What is the output of this C code? #include <stdio.h> int main() ( char n[] = 
"hellonworld!"; char s[13]; sscangn, "%s", s); printf("%s\n", s); return 0; ) 
A. hello      
B. hellonworld! 
C. hello world!     
D. hello world

5. For a 32 bit compiler, what is the memory requirement of MARUTI declared below in bytes? struct car ( short cc; int engine_no; long chases_no; )MARUTI[10]; 
A. 40     B. 10      C. 140      D. 14 

6. Which of the below is the correct declaration for a generic pointer? 
A. void *p; 
B. *p; 
C. int *p; 
D. NULL *p; 

Answers: C B A A C A.  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.

Comments

Popular posts from this blog

Top Numerical Reasoning Questions and Answers

S.CHAND: English Grammar Composition E-Book PDF Free Download; (Student's Exercises - Activities)

Mahendra's Reasoning Ability Study Material PDF for banking (RBI, SBI, IBPS: PO, SO, Clerks), Railway RRB and other Competitive Examinations