Interview Question 1
Tell one good programming requirement that illustrates the fact that C is a strongly typed language ? Answer 1 C involves variable declarations before their usage. This makes it clear that C is strongly typed. Interview Question 2
Consider a weather report application in C where any change in temperature by +- 2 degrees will be constantly reported to the system and the application should store the times of the day when these changes took place. Which is a better data structure to be used in this scenario - an array or a linked list Answer 2 Linked List would handle dynamically growing data very well when compared to arrays. Hence it would be a better choice. Interview Question 3
Can one use arrays to implement stacks or queues over linked lists ? Is it feasible ? Answer 3 Thought linked lists are commonly used for implementing stacks or queues, with good programming logic, arrays can also be used to implement those. However, as you would expect, linked lists are far more efficient in this scenario. Define the scope of static variables.
Static variables in C have the scopes; 1. Static global variables declared at the top level of the C source file have the scope that they can not be visible external to the source file. The scope is limited to that file. 2. Static local variables declared within a function or a block, also known as local static variables, have the scope that, they are visible only within the block or function like local variables. The values assigned by the functions into static local variables during the first call of the function will persist / present / available until the function is invoked again. What is the output of this C code?
#include <stdio.h> void main() { int b = 5 - 4 + 2 * 5; printf("%d", b); } Answer: 11 What is the output of this C code?
#include <stdio.h> void main() { int b = 5 & 4 & 6; printf("%d", b); } Answer: 4 |
- Home
-
C Language
- C++
- Java
-
B.C.A
- Subject Details
- COBOL
- Digital Logic Fundamentals
- Fundamental of Digital Computers
- Microprocessor and its applications
- Programming in C
- Computer Graphics
- Operating System
- Programming in C++ and Data Structures
- DBMS
- Programming in Java
- Data Communication and Networking
- Software Engineering
- Software Testing
- Web Technology
- Elective - I >
- Elective - II >
- Elective - III >
- Maths Questions >
- English
-
B.Sc
- B.Sc (Cs) Subject Details
- Computer Architecture and Organization
- Digital Electronics and Microprocessor
- Data Structure Using C++
- Microprocessor and Its Applications
- Programming in C
- Programming in C++ and Data Structures
- Programming in Java
- Visual Programming
- Operating System
- DBMS
- Software Engineering
- Data Communication and Networking
- Software Testing
- Web Technology
- Computer Networks
- OOAD
- Multimedia Systems
- M.C.A
- M.Sc (CS)
- M.Sc (IT)
- Conduct Us
- Programming Language
- Programming Logic
- Computer Terms
- Job Selection Process
- Learn English Using Tamil
- Spoken English in Tamil
- Conversational Tamil
- English
- Interview