Вы находитесь на странице: 1из 7

RVCE

1st Semester ICP

Computer Programming Lab: VIVA QUESTIONS Hardware Questions: 1) What is a Computer? 2) What is CPU? 3) What is ALU? 4) What is CU? 5) What is RAM? 6) What is ROM? 7) What is PROM? 8) What is EPROM? 9) What is EEPROM? 10) Differentiate between Volatile and non-volatile memory. 11) What are the input and output devices? 12) What is the need for cache memory? 13) Differentiate between main memory and second memory. 14) What is hardware? 15) Mention the different types of hardware components? 16) What is meant by tracks? 17) What is meant by sectors? 18) What is CD-ROM? 19) What are the main parts of a floppy disk? 20) Differentiate between magnetic disks and optical disks. 21) What is programming? 22) What is software? 23) What are the different types of software? 24) What are the different types of programming languages?

RVCE

1st Semester ICP

25) Differentiate between interpreter and compiler. 26) Differentiate between loader and linker. 27) Differentiate between Application software and System software. 28) What is an operating system? 29) What are language processors? 30) Mention some operating systems. 31) Differentiae between compiler and assembler. 32) What is translator? 33) What is meant by interpretation? 34) What is meant by source program? 35) What is meant by object program? 36) Give examples for High Level Languages. 37) Give examples for Assembly Level Languages.. 38) Differentiate between Analog and Digital computers. 39) Differentiate between microcomputer & minicomputer. 40) Differentiate between internal & external DOS commands. 41) How do you classify the computers based on the size & capability? 42) How do you classify the computers based on principle of working? 43) What is computer network? 44) How do you classify the computer networks? 45) Differentiate between LAN and WAN. 46) What are the different types of DOS? 47) What is DOS? 48) What is Real Time Systems? 49) What are the advantages of computer network?

RVCE C VIVA Questions:

1st Semester ICP

1) What is BCPL? 2) Who developed BCPL? 3) Who developed B language? 4) Who developed C language? 5) How do you make comments in C program? 6) How the name C is derived? 7) What is K & R C? 8) What is preprocessor statement? 9) Differentiate between constant and variable. 10) What is data type? 11) Name the basic data types of C. 12) Differentiate between string constant and character constant. 13) What is the range of integer, char, float for a 16-bit computer? 14) What is a statement? 15) What is a keyword? 16) Differentiate between keywords and identifiers. 17) What is the need for an escape sequences? 18) What is a symbolic constant? 19) How do you classify C operators? 20) What is the use of modulus operator? 21) What is meant by mixed mode operation? 22) What are bitwise operators? 23) What is unary operator? 24) What is binary operator?

RVCE 25) What is typecasting? 26) What is a conditional / ternary operator? 27) What is need for type conversion? 28) Differentiate between && and &.

1st Semester ICP

29) Differentiate between pre-increment/decrement & post-increment/decrement. 30) Differentiate between Unformatted and formatted i/o statements. 31) How do you classify the control statements? 32) Differentiate between while and do-while loop. 33) Differentiate between break and continue. 34) When do you prefer for loop statement? 35) What is looping? 36) What is an array? 37) Give the classification of arrays? 38) Differentiate between an array and an ordinary variable. 39) Array variable is also called as ______. 40) What are character arrays? 41) When do you use two-dimensional character array? 42) Name the different string handling functions? 43) What is meant by modularization? 44) Differentiate between standard functions & user-defined functions? 45) Differentiate between arguments and parameters. 46) Differentiate between local and global variables. 47) Name the different methods of parameter passing? 48) How does the function definition differ from function declaration? 49) What is recursive function? 50) What is meant by scope of a variable?

RVCE 51) What is a structure?

1st Semester ICP

52) Differentiate between array and structure. 53) What are embedded structures? 54) How do you access the member of a structure? 55)What is a pointer? 56) Differentiate between address operator and dereferencing operator. 57) How do you declare a pointer variable? 58) What is a File? 59) How do you define and Open a file? 60) Different access modes of a file. 61) I/O Operations on File. 62) Error Handling during I/O operations

List the five c compiler? Name 1. Turbo c 2. Ansic c 3. Borland c 4. Microsoft c 5. Visual c++ Work on O.S M.S DOS LINUX/UNIX WINDOW M.S DOS WINDOW Name of microprocessor 8086 80386 80386 8086 80386

Describe Turbo c compiler. Turbo c compiler is one of the most popular c compilers. It is based on DOS operating system. It uses 8086 microprocessor which is 16 bit microprocessor. It has 20 address buses and 16 data bus. Its word length is two byte.

RVCE

1st Semester ICP

How many types of data are in C programming language? In c programming language, there are three types of data. Which are:

What is size of each data types in C programming? Size of data type depends upon microprocessor. Each microprocessor defines its own word length. On the basis of word length in general we can say: 1. Size of int is word length. 2. Size of short int can be >= word length/2 but <=word length Size of long int can be <= 2*word length but >=word length. 3. Size of char, float, double, long double is always fix. 4. Size of enum is size of int. Turbo C is based on 8086 microprocessor and its word length is two byte For TURBO C or 8085 processor (Word length=2 byte) Data type Size (In byte) char 1 short int 2 int 2 long int 4 enum 2 float double long double 4 8 10

Note: Modifier like signed, unsigned etc. doesnt change the size of any data type. 6

RVCE

1st Semester ICP

What is const and volatile qualifier in C programming? Value of any variable can be changed either by program or external device. const and volatile is not opposite to each other. const: When any variable has qualified with const keyword in declaration statement then it is not possible to assign any value or modify it by the program. But indirectly with the help of pointer its value can be changed. When any variable is not qualified by const keyword then its meaning is that value of variable can be changed after the declaration statement by the program. E.g. What will be output of following program? void main() { const int a=5; a++; printf(%d,a); } Output: compiler error, we cannot modify const variable. Volatile: when any variable has qualified by volatile keyword in declaration statement then value of variable can be changed by any external device or hardware interrupt. (Q) What is meaning of the declaration: const volatile int a=6; Answer: Value of variable cannot be changed by program (due to const) but its value can be changed by external device or hardware interrupt (due to volatile).

Go though the below mentioned link : http://cquestionbank.blogspot.com/

***For Answers to the above given viva questions, go through the ICP Notes which I have mailed

Вам также может понравиться