• Study Materials – Company wise
    • Infosys Archive
    • Accenture Archive
    • AMCAT Archive
    • Capgemini Archive
    • Cisco Archive
    • CoCubes Archive
    • Cognizant(CTS) Archive
    • Dell Archive
    • Deloitte Archive
    • DXC Archive
    • Goldman Sachs Archive
    • Hexaware Technologies Archive
    • LTI Archive
    • MindTree Archive
    • TCS Archive
    • Virtusa Archive
    • Wipro Archive
  • Interview Preparation – E Books
    • C Interview Questions
    • Data Structures Interview Questions
    • DBMS Interview Questions
    • HR Interview Questions
    • Java Interview Questions
    • Operating System Interview Questions
    • Python Interview Questions
    • SQL Query Interview Questions
  • Programming
    • C Programming MCQs
    • C Code Snippets – Output Questions
    • Python Code Snippets – Output Questions
  • Aptitude
    • Verbal Ability for Placements
    • Quant for Placements
  • Register
  • Login
CODE OF GEEKS

We at CODE OF GEEKS, aim at providing best and quality content for our users at no extra cost.

    • Study Materials – Company wise
      • Infosys Archive
      • Accenture Archive
      • AMCAT Archive
      • Capgemini Archive
      • Cisco Archive
      • CoCubes Archive
      • Cognizant(CTS) Archive
      • Dell Archive
      • Deloitte Archive
      • DXC Archive
      • Goldman Sachs Archive
      • Hexaware Technologies Archive
      • LTI Archive
      • MindTree Archive
      • TCS Archive
      • Virtusa Archive
      • Wipro Archive
    • Interview Preparation – E Books
      • C Interview Questions
      • Data Structures Interview Questions
      • DBMS Interview Questions
      • HR Interview Questions
      • Java Interview Questions
      • Operating System Interview Questions
      • Python Interview Questions
      • SQL Query Interview Questions
    • Programming
      • C Programming MCQs
      • C Code Snippets – Output Questions
      • Python Code Snippets – Output Questions
    • Aptitude
      • Verbal Ability for Placements
      • Quant for Placements
    • Register
    • Login
  • [email protected]
  • ..
Login / Register
Apply Now
CODE OF GEEKS
CODE OF GEEKS
  • Study Materials – Company wise
    • Infosys Archive
    • Accenture Archive
    • AMCAT Archive
    • Capgemini Archive
    • Cisco Archive
    • CoCubes Archive
    • Cognizant(CTS) Archive
    • Dell Archive
    • Deloitte Archive
    • DXC Archive
    • Goldman Sachs Archive
    • Hexaware Technologies Archive
    • LTI Archive
    • MindTree Archive
    • TCS Archive
    • Virtusa Archive
    • Wipro Archive
  • Interview Preparation – E Books
    • C Interview Questions
    • Data Structures Interview Questions
    • DBMS Interview Questions
    • HR Interview Questions
    • Java Interview Questions
    • Operating System Interview Questions
    • Python Interview Questions
    • SQL Query Interview Questions
  • Programming
    • C Programming MCQs
    • C Code Snippets – Output Questions
    • Python Code Snippets – Output Questions
  • Aptitude
    • Verbal Ability for Placements
    • Quant for Placements
  • Register
  • Login
0

Cart

C Programming – Objective Type Questions

  • June 12, 2020
  • CODE OF GEEKS
  • 6


Q21. Which of the following is an invalid if-else statement ?

a) if (if (a == 1)){}

b) if (func1 (a)){}

c) if (a){}

d) if ((char) a){}

(a)

Q22. According to ANSI specification, how to declare main () function with command-line arguments ?

a) int main(int argc, char *argv[])

b) int char main(int argc, *argv)

c) Both of the above

d) None of the above

(a)

Q23. const int *ptr;. Which statement is true ?

a) You cannot change the value pointed by ptr

b) You cannot change the pointer ptr itself

c) You May or may not change the value pointed by ptr

d) You can change the pointer as well as the value pointed by it

(a)

Q24. _ is used to break out of a program ?

a) break

b) continue

c) terminate

d) exit

(d)



Q25. Which is an indirection operator among the following?

a) &

b) $

c) *

d) .

(c)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
Tags: cc mcqsprogramming mcqs
  • Previous InfyTQ Final Round 2020 – Result Update
  • Next Hack with Infy Round 2 Cut-Off to be in Top 100

6 comments on “C Programming – Objective Type Questions”

  1. Sonu Raj says:
    August 20, 2020 at 6:17 am

    Thanks For Your Support.

    Reply
  2. Projjal says:
    August 24, 2020 at 8:51 am

    Good work. Keep it up!!!

    Reply
  3. Radhe shyam Saini says:
    September 7, 2020 at 7:49 am

    great work bro

    Reply
  4. Anish Roy says:
    September 27, 2020 at 9:20 pm

    Good Work Shrey Sir and his team:)

    Reply
  5. Mukesh Patel says:
    March 31, 2021 at 5:26 pm

    How many keywords are there in Standard C programming language ? Ans is 32 not 44

    Reply
    1. Support@COG says:
      March 31, 2021 at 7:01 pm

      Standard C has 44 keywords including C89 – 32, C99 – 5, C11 – 7.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CODE OF GEEKS

Subscribe to Newsletter

CODE OF GEEKS

Learn | Code | Achieve

Reach us

[email protected]
We at CODE OF GEEKS, aim at providing quality content to our users at no cost.
CODE OF GEEKS

Important Pages

About us
Advertise
Privacy Policy
Terms and Conditions

Placements – Study Materials

TCS NQT     Wipro     CapGemini
Accenture     MindTree     CTS
DXC     Hexaware Technologies     AMCAT
CoCubes     Goldman Sachs     Dell
Cisco     Deloitte     Virtusa     LTI     Infosys   

Courses

  • Mail Us
  • Login/Register

Recent Posts

What is Cloud Computing | Cloud Computing Applications | Cloud Development Models| SaaS vs PaaS vs IaaS
  • October 23, 2021
What is Amazon Web Services | AWS Regions & AZs | Different AWS Services
  • October 19, 2021

Copyright 2021 CODE OF GEEKS. All Rights Reserved.

  • →