Skip to main content

C Language Placement Papers of IT Companies (C Programming Quiz - 5)

1. Mr.Suresh and Mr.Ganapati studying Bachelor degree program in computer science are working on twocomputers in solving a ‘C’ program. After the completion of the program they have compiled theprogram. Which of the following components of the computer performs the compilation, though it doesnot actually process any data?
[A]Input unit
[B]Output unit
[C]Arithmetic and Logic Unit
[D]Control unit


2. What is the range of integer constant in C language?
[A]-2^16 to 2^16
[B]0 to 2^16 -1
[C]-2^15 to 2^15
[D]-2^15 to 2^15 -1


3. In a C program, Mr. Suresh initialized ‘a’ and ‘b’ as 50, 50 respectively.
a = a++ + ++b;
b = b++ + ++a;
What will be the values of ‘a’ and ‘b’ after executing the above statements?
[A]103, 153
[B]102, 154
[C]104, 154
[D]102, 153


4. In C language , the structure definition is terminated with
[A]Semicolon
[B]Colon
[C]Comma
[D]Period


5. In C language, which of the following functions is used to read an integer from a file?
[A]getc()
[B]putc()
[C]getw()
[D]putw()


6. In C language, array index starts with
[A]0
[B]1
[C]2
[D]–1


7. How many categories of functions are present in C language?
[A]2
[B]3
[C]4
[D]1


8. In C program, the arguments used in the calling function are called
[A]Active arguments
[B]Passive arguments
[C]Actual arguments
[D]Formal arguments


9. Mr. Suresh, has wrote the following statement in C program.
a = 2>3? 5>4? 100:200:4>3?300:400
What will be the value of a after executing the above statement?
[A]100
[B]200
[C]300
[D]400


10. In C language, which of the following variables default initial value is garbage value?
I. Automatic variable.
II. Static variable.
III. Register variable.
[A]Only (I) above
[B]Only (II) above
[C]Both (I) and (II) above
[D]Both (I) and (III) above


11. In C program, if a is integer variable then the expression a = (30 x 1000) +2768 evaluates to
[A]32768
[B]–32768
[C]113040
[D]0


12. In C program, which of the following functions gives the current position in the file?
[A]ftell( )
[B]fpoint( )
[C]fcurrent( )
[D]fseek( )


13. In C language, which of the following symbols are used for comment lines?
[A]*,*
[B]/ , /
[C]&,&
[D]/*, */


14. Which of the following is/are true about circular linked list?
I. Circular linked list is terminated with null terminating pointer.
II. Circular linked list is that the whole list can be processed beginning at any point.
III. Circular doubly linked lists provide the benefit of both singly liked list and circular linked list.
[A]Only (I) above
[B]Both (I) and (III) above
[C]Both (I) and (II) above
[D]Both (II) and (III) above


15. Mr.Gopal, working on a ‘C’program in which he has to test more than one condition to arrive at the right decision. So which of the following operators will be helpful for him?
[A]Increment operators
[B]Decrement operators
[C]Arithmetic operators
[D]Logical operators


Comments

Popular posts from this blog

Email Etiquette Quiz

1. Which of the following is considered to be poor e-mail etiquette? [A]Have a proper sign off: Regards, Sincerely, etc. [B]Responding to messages as soon as possible [C]Using different colors/fonts/formatting to emphasize certain words [D]Keeping the message personal 2. What should be the tone of a professional email message? [A]Formal [B]Casual [C]Formal with slight usage of slangs [D]Conversational 3. What is the purpose of the BCc field? [A]To send copies of business e-mail to coworkers without the knowledge of boss [B]To respect contact's privacy [C]To keep e-mail looking clean [D]To send copies to anyone you want 4. What is the best way to send a very large attachment? [A]Compress the file (zip it up) [B]Send it first thing in the morning so that person can look into it with fresh mind [C]Send it only during weekend when traffic is low [D]Compress the file, then ask first when would be the best time to e-mail it 5. What is Flame? [A]A post or email message that exhibi

Krishna Janmashtami Quiz

1. Krishna Janmashtami is an annual Hindu festival that celebrates the birth of Krishna, the ____________ avatar of Vishnu. [A]Sixth [B]Seventh [C]Eighth [D]Ninth 2. Krishna was the son of? [A]Devaki [B]Vasudeva [C]Kansa [D]A & B 3. Janmashtami is an important festival particularly to which tradition of Hinduism? [A]Shaivism [B]Shaktism [C]Smartism [D]Vaishnavism 4. Which festival is celebrated every August/September, the day after Krishna Janmashtami mainly in Maharashtra? [A]Makhan Handi [B]Dahi Handi [C]Ghee Handi [D]Mitti Handi 5. In which city Bhagwan Krishna was born? [A]Dwarka [B]Vrindavan [C]Mathura [D]Kurukshetra 6. Janmashtami or Sri Krishna Jayanti celebrates the birthday of Krishna. It is also known by which name in Maharashtra and South India? [A]Gokulashtami [B]Bal Ashtami [C]Krishna Ashtami [D]Nandashtami 7. Fiji's Janmastami celebrations last for eight days, leading up to the eighth day, the day Krishna was born. Janmastami in Fiji is known as [A]G

Class 2 | Means of Communication | EVS General Awareness | Quiz

1. We keep in touch with everyone through- means of communication means of transport means of production none 2. Which of the following are personal means of communication? Letter Mobile e-mail All of the above 3. We post our letters in a - Wooden Box Almirah Letter box Bank 4. From where do we get postal stamps? Bank Post office Milk booth Grocery shop 5. Which of the following are means of mass communication? Radio Newspaper Telephone Radio and Newspaper 6. Which of the following is NOT a means of personal communication? Radio Letter Post card Fax 7. Which means of communication will you use to call your friend for your birthday party? Newspaper Television Mobile Letter 8. Urgent messages were earlier sent by telegram. The message in a telegram had to be ___________ as each word was paid for. Long Short No message is sent by telegram Very long 9. Which of the following are also called modern means of communication? Telephone Mobile e-mail All of the above 10. Which of the following i