Search This Blog

Tuesday, April 29, 2025

Functions and Variables in C Programming

 Variables can be passed to a C function as arguments, and the function can access these variables as function parameters. After processing information, the function can return a value to the main C program. The question here is, can a function return its local variable to the main program? There are different possibilities; here is one of these. Can you guess the output of the code given below? Comment the reason why you think the output you are providing is the right one.




Created by: Nancy N

29-Apr-2025


Sunday, April 27, 2025

C keyword or not?

 Which of the following is NOT a C programming language keyword?

a) auto

b) external

c) sizeof

d) volatile


Created by Nancy N

@18:24 27-Apr-2025



Friday, April 25, 2025

What is a Self-Refrential structure?

 Self-referential structures are used in C and C++ programming. A self-referential structure is a structure that contains a pointer to itself, or you can say a pointer to a variable of the same type. A self-referential structure can have one or more pointer variables pointing to the same type. 

Example of simple structure:


Example of self-referential structure:


Here, nptr is a pointer variable of type struct person, and nptr is a variable in the same datatype struct person. 

In a later post, we will see how the self-referential structures are useful.

Created by Nancy K A N
@00:59 26-Apr-2025





Thursday, April 24, 2025

Interesting facts about JAVA - 3

 const is a Java reserved word with no assigned semantics to it. So, you cannot create an identifier with the name const. It is not a keyword, so it cannot be used in a Java program. It is just a prohibited word. A word that has no meaning in Java but is forbidden for any kind of use. Funny, isn't it?

If you declare to as a local variable:


On compilation, you get an error:


If you declare it as an instance variable:


On compilation, you get the following error:



By: Nancy K A N

@9:48 25-Apr-2025





Wednesday, April 23, 2025

REST - 1

 Which protocol will you use in a REST service?

a) SOAP

b) JMS

c) HTTP

d) SMTP

e) FTP

Tuesday, April 22, 2025

Design Patterns - 1

 There are three types of Gang of Four (GoF) Design patterns

1. Creational

2. Structural

3. Behavioral


Can you find which of these is a creational design pattern?

a) Facade

b) Strategy

c) Factory

d) Observer



Created and posted by Nancy N.

@15:40 pm GMT


Wednesday, April 16, 2025

Object Oriented Programming Languages

 Which of the following is/are not an Object Oriented Programming (OOP) language(s)?

a) JavaScript

b) C++

c) COBOL

d) C