Software Programming : C Programming QUESTIONS AND ANSWERS :: part7 : 6 to 10
Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :
6.What is the correct output of the following program?
#include |
Syntax error |
ISIT |
Nothing |
ITSI |
TIIS. |
7.int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; What value does testarray[2][1][0] in the sample code above contain? |
3 |
5 |
7 |
9 |
11. |
8.What is the result of the following code? x=0;switch(x) { case 1: cout<<"One"; case 0: cout<<"Zero"; case 2: cout<<"Hello World"; } |
ZeroHello World |
Zero |
Hello World |
One |
OneHello World. |
9.char* myFunc (char *ptr) {ptr += 3; return (ptr); } int main() {char *x, *y; x = "HELLO"; y = myFunc (x); printf ("y = %s \n", y); return 0; } What will print when the sample code above is executed? |
y = HELLO |
y = ELLO |
y = LLO |
y = LO |
x = O. |
10.What is the difference between a declaration and a definition of a variable? |
Both can occur multiple times, but a declaration must occur first |
There is no difference between them |
A definition occurs once, but a declaration may occur many times |
A declaration occurs once, but a definition may occur many times |
Both can occur multiple times, but a definition must occur first. |
More C Programming QUESTIONS AND ANSWERS available in next pages
-
Health is the greatest gift, contentment is the greatest wealth -Buddha
- TNTET 2021 - Practice
- SSC CGL 2021 - Practice
- TNPSC Group 2A 2021 - Practice
- IIT JEE
- IIT JEE Q&A
- TNPSC Answer Keys
- TNPSC Group 2 Syllabus
- TNPSC Q&A
- Online Tests - TNPSC
- Online Tests - GK
- IBPS 2020-2021
- Online Tests - Bank
- Online Tests - RRB NTPC
- Online Tests - UGC NET
- Online Tests - TANCET
- Online Aptitude Test
- Engineering
- Programming
- Basic Science
- Quiz
- Plus Two Question Papers
- SSLC Question Bank
- Aptitude Tests
- Logical Reasoning
- General Knowledge-Hindi
- Indian History MCQ
- Indian Geography MCQ
- Indian Civics MCQ
- Indian Economics MCQ
- CTET Biology MCQ
- CTET Chemistry MCQ
- CTET Physics Solved MCQ
- Arithmetic Tests
- Press Release
- FAQ
- Coaching Centres
- TNPSC Group 1 Syllabus
- TNPSC Group IV Syllabus
- TRB 2017 in English PDF
- TRB 2017 in Tamil PDF
- TET
- TNTET