Skip to main content

C programming Viva questions

1. Which type of language is C ? 

Ans- C is a high level language and general-purpose structured programming language.

2. what is  a compiler ?

Ans- Compiler is the software that transfer program developed in a high-level language into executable object code.

3. What is an algorithm ?

Ans- The approach and method that used to solve the problem is called an algorithm. 

4. What is a token and types of c tokens ? 

Ans- The smallest individual units are known as C tokens . C has six types of tokens : Keyword, constants , Identifier , Strings , Operators and Special symbols.

5. How many keywords in c ?

Ans- There are 32 keywords in the c language.

6. what is an identifier ?

Ans- Identifiers are user define name given to variables , Functions and arrays.

7. what are the datatypes present in c ?

Ans- C language supports 2 different type of data types:

1.Primary data types:
These are fundamental data types in C namely integer(int), floating point(float), character(char) and void
2. Derived data types:
Derived data types are nothing but primary datatypes but a little twisted or grouped together like arraystructureunion and pointers. These are discussed in details later.

Comments

Popular posts from this blog

Python | Calendar Module

 Python | Calendar Module Python defines an inbuilt module calendar that handles operations related to the calendar. The calendar module allows output calendars like the program and provides additional useful functions related to the calendar. Functions and classes defined in the Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions. By default, these calendars have Monday as the first day of the week, and Sunday as the last (the European convention).  Example #1: Display the Calendar of a given month.  # Python program to display calendar of # given month of the year  # import module import calendar yy = 2017 mm = 11  # display the calendar print(calendar.month(yy, mm))  Output:  Example #2: Display calendar of the given year.  # Python code to demonstrate the working of  # calendar() function to print calendar # importing calendar module  # for calendar operations import cale...

Fourer series formula

 Fourer series formula

DABASE MANAGEMENT SYSTEM QUESTIONS

 DABASE MANAGEMENT  SYSTEM SHORT QUESTIONS AND ANSWERS 1. What is database? A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world  and which is designed, built and populated with data for a specific purpose. 2. What is DBMS? It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose  software that provides the users with the processes of defining, constructing and manipulating the database for various  applications. 3. What is a Database system? The database and DBMS software together is called as Database system. 4. What are the advantages of DBMS? 1. Redundancy is controlled.  2. Unauthorised access is restricted.  3. Providing multiple user interfaces.  4. Enforcing integrity constraints.  5. Providing backup and recovery.  5. What are the disadvantage in File Processing System? 1. Data redundancy and incons...