Search Your Paper

Showing posts with label Computer Programming and Applications Electrical(D) 3rd. Show all posts
Showing posts with label Computer Programming and Applications Electrical(D) 3rd. Show all posts

Tuesday, September 6, 2016

S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/0264/May’09
Duration 3 Hrs.
Section –A
1.                   
a.                 ‘C’ language ahs been developed by ________
b.                 If ‘a’ is an integer variable, then a=5/2 will return value _____
c.                  ________ data items are real data items that provide greater precision than is normally provided by the float real data items.
d.                 The ________ statement causes the loop to be terminated.
e.                  The continue statement is used to transfer the control to the _____ of the loop
State true or false
f.                   Like decimal number system, octal and hexadecimal system can also be used in ‘c’ language
g.                 An identifier/ variable name can begin with _________ (underscore )
h.                 A break statement cannot be used to exit from a statement block in a switch statement.
i.                   The loop in a do ….. while structure is executed at least once.
j.                   In C, an array of characters is called string.

Section –B
          Note : Attempt any five questions
2.                   
a.                 Draw the flowchart to find the smallest of given three numbers.
b.                 What is library function? Mention its sues.
c.                  Explain scanf() and printf () function in C
d.                 Explain the various if structures available in ‘C’ language.
e.                  What happens if the condition in a while loop is initially false? Explain with example
f.                   Differentiate between call by value and call by reference.

‘Section –C
          Note : Attempt any three questions

3.  Differentiate between the following with suitable examples. structure and union structure and arrays

4.                 Write a program in ‘C’ language to multiply two matrices.

5. What do you mean by precedence and associatively of operators ? explain the arithmetic and logical operators with their precedence and associatively.


6.                 Write  a program to solve the following using function n


7.                 Explain the uses of the following software packages

a.                 Electronic workbench

b.                 Circuit maker




S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/6160/May’09
Duration 3 Hrs.

1.                 Choose the correct or best alternative in the following:
a.                 Literal means
i.                        A string.
ii.                        A string constant.
iii.                        A character
iv.                        An alphabet.
b.                 Choose the correct answer
i.                        Casting refers to implicit type conversion
ii.                        Coercion refers to implicit type conversion.
iii.                        Casting means coercion.
iv.                        Coercion refers to explicit type conversion.
c.                  Printf(“%d”, printf (“tm”));
i.                        Results in a syntax error
ii.                        Outputs time
iii.                        Outputs garbage
iv.                        Outputs tim and terminates abruptly
d.                 Output of the following program fragment is

X=5
Y= x++
Printf (“%d%d”; x, y)

i.                        5,6
ii.                        5,5
iii.                        6,5
iv.                        6,6
e.                  The value of an automatic variable that is declared but not initialized will be
i.                        0
ii.                        -1
iii.                        Unpredictable
iv.                        None of these

f.                   Consider the following program main()
{ float a=0.5, b=0.7;
If (b < 0.8)
If (a<0.5) printf(“ABCD”);
Else printf(“PQR”);
Else printf(“JKLF”);
}

The output is

i.                        ABCD
ii.                        PQR
iii.                        JKLF
iv.                        None of these
g.                 The following program fragment
Int *a;
*a=7;

i.                        Assigns 7 to a
ii.                        Results in compilation error
iii.                        Assigns address of a as 7
iv.                        Segmentation fault
h.                 A pointer variable can be
i.                        Passed to a function.
ii.                        Changed within function
iii.                        Returned by a function.
iv.                        Assigned an integer value
i.                   The 4-bit binary number 0111 represents
i.                        15
ii.                        -7
iii.                        7
iv.                        -1
j.                   A byte corresponds to
i.                        4 bits
ii.                        8bits
iii.                        16 bits
iv.                        32 bits

Section –B

Note : Attempt any five parts. Each question carries 6 marks

2.  Write a C program that reads a fixed point real number in a character array and then displays right most digit of the integral part of number.

3.                 Output the number x =56.1624 under the following format specification
a.                 Printf(“%7.2f”,x)
b.                  Printf(“%f”,x)
c.                  Printf(“%8.2f”,x)
d.                 Printf(“%e”,x)

4.                 Write a C program that uses ‘for’ construct to find the sum of the following harmonic series for a given value of n and display the sum.

1+1/2+1/3+……+1/n

5.                 Write a C program fragment using do…. While” construct to print out even numbers between 10 to 100 making sure that two number are written per line.

6.                 Given an integer, write a C program that displays the number as follows
First line     : all digits of integer
Second line : all except first right most digit
Third line : all except two light most digits

List line : left most digit
7.                 Describe the output of the following C program fragment
Main ()
{ int k =0, x=0;
While (k<25)
{ if (k%5==0)
{ x+=k;
Print f(“%d *,”x)
}
++k;
{
Printf(“/n jd “x+k,);
}

Section –C

Note : Attempt any three questions

8.                   

a.                 Write a C program to compute the balue of sin function. The loop must terminate when the absolute
Value of the term is less than 0.00001
Sin x=x-x3/3!+x5!-x7/7!+….
b.                 Write a switch statement that will examine the value of an integer variable flag and print the following messages;
It is hot weather; if flag has value 1
It is a stormy weather, if flag has value 2
It is sticky weather; if flag has value 3
It is a pleasant weather, otherwise

9.                   

a.                 Define a structure name student containing two fields ‘name’ and ‘marks’
b.                 Declare an array of structure having 50 elements of student type.
c.                  Write an input statement for inputting the marks and the names of 50 students defined as above.
d.                 Write a complete C program to compute and print the names of those students who have got more than 80 marks. Also print their marks along with their names.

10.              

a.                 Write a recursive function in C to compute the value of x where n is a positive integer and x has a real value.
b.                 Write a function ‘exchange’ to interchange the values of two variables say x and y. illustrate the use of this function in calling program. Assume that x and y are defined as global variables.

11.              

a.                 Write a C function that returns 1 if the arguments is a prime number is a prime number and returns 0 otherwise.


b.                 Write  a C function for searching an elements in an array of size N. Assume that elements in array are stored in ascending order.



S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/6160/Des’08
Duration 3 Hrs.
Note Attempt all questions.
Section –A
1.      Do as directed:

a.     In C, size of int variable is ______ bytes.
b.    && is _______-- operator in C.
c.      Define primary key.
d.    Which function is required in all C program.
e.      What is difference between ‘=’ and ‘==’
f.      Dbase is a case sensitive language (T/F)
g.     Array of characters is called _____
h.    Scanf  is output statement (T/F)
i.       CAD stands for computer aided drawings (T/F)
j.       CAI stands for _______
Section  -B
2.       
a.     What is nested –if statements?
b.     What is difference between sorting and indexing?
c.      Explain CAE
d.     Write a program to find real roots of a quadratic equation ax2+bx+c=0 where a = 0.
e.      Explain relational and logical operator.
f.       What is difference between list and display all
g.     What is difference between getch and getche

Section-C
Note : Attempt any two questions

3.     Discuss various types of constants.

4.     Explain features and applications of CAE

5.     Discuss following C statement

a.     Fopen

b.     Scanf
c.      Gets
d.     Puts
e.      Include statements


6.     Explain CAD and CAM 



S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/6160/Des’07
Duration 3 Hrs.
Note Attempt all questions.
Section –A
1.      Do as directed:
a.     ______ is a statement terminator in C.
b.     In C, equal operator is _______
c.      C is a case sensitive language (T/F)
d.     DBMS stands for __________
e.      CAM stands for _________
f.       C is a middle level language (T/F)
g.     In a ________ database model , data can freely move.
h.     What is data?
i.       The extension of dbase file is ________
j.       In C size of char variable is _____byte.

Section-B

          Note : Attempt any five questions
2.       
a.      What is a database? How can a database be sorted?
b.     How computer are helpful in measurement and control?
c.      What is a array? Explain 1-D & 2-D array?
d.     Write a program in C to find factorial of a number.
e.      What is a data file in C? how it is created?
f.       What is differentiate between while & do –while statement.
g.     What is the structure of C program ?

Section –C

3.     Explain the differentiate between getch() getchar () statements.

or

write a program to find average marks obtained by 30 students using array.

4.     What do you mean by business data processing? Explain

Or

Explain the following Dbase commands

i.                   Edit
ii.                 List
iii.              Pack
iv.              Browse

v.                 Locate  



S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/ETV/6160/Des’09
Duration 3 Hrs.
Note Attempt all questions.
Section –A
1.      Do as directed:
Fill in the Blanks
a)     CAM stands for _________
b)    CAI stands for ___________
c)     The ________ statement causes the loop to be terminated.
d)    The continue statement is used to transfer the control to the ___ of the loop.
e)     The array declaration for a list of 50 floating point temperature is ______
State true or false
f)      One can index a data base file in the descending order in all cases.
g)     The LIST command lists all records on screen.
h)    The CLOSE command is used to exit form foxpro to DOS.
i)       An array is a group of dissimilar data items.
j)       Fopen () is the function to open a file in standard file library functions.

Section –B
2.      
a.     Explain the steps to sort the data in a database on a selected key.
b.     Explain the engineering computation applications of computers.
c.      Write short note on CAM
d.     Explain the rules for naming variables in ‘C’ language
e.      Write a program in ‘C’ to find greatest of three numbers.
f.       Explain the use of break and continues statements.
g.     Write a program in ‘C’ to find Fibonacci series.

Section –C
          Note : Attempt any three questions

3.     Discuss the use of various applications software available in the field of electronics engineering.

4.     Discuss the commercials and business data processing applications of computers.
5.     Write a ‘C’ program to add two matrices.

6.     Describe the various decisions making statements in ‘C’ language


7.     Discuss the syntax and purpose of various I/O statements in ‘C’ language.



S.B. Roll No……
Computer Programming and Applications
3rd Exam/ECE/0264/Des’09
Duration 3 Hrs.
Note Attempt all questions.
Section –A
1.      Do as directed:
a.     The main drawback of C is that it has poor error detection (T/F)
b.     C program must have a main ( ) function (T/F)
c.      In signifies ______
d.     The assignment operator is the equal sign _______
e.      The ___________ operator only works with integer operands.
f.       The first argument of the print f function is called the _____
g.     The for flop is C’s form of an unconditional loop (T/F)
h.     The _________ statement allows branching depending upon a condition.
i.       If-else statement is used to decide between two course of actions (T/F)
Section –B

Note: Attempt any five questions

2.     Explain main sue of structure  in C with example.

3.     All C programs must include a function with name ‘main’. Explain with example

4.     Main ()
{
Print f(‘hallo , world /n’)
}

Explain error in above program

5.     Write a C program that reads in two numbers, stores them and prints out the sum.
6.     Explain function of scanf() with example.

7.     Explain rules for evaluating expression involving the logical operators.

Section –C
Note : attempt any two questions

8.     Explain features of 20 sim. What is new in the latest version of 20 sim.

9.     Explain the term ‘MATLAB- The language of technical computing.


10.    Explain storage classes which  can be used in a C program.  

Popular

Archive

North India Campus. Powered by Blogger.

Welcome to North India Campus

Search Question Paper

Labels

1ST Semester M.SC IT(D) 1ST Semester MBA 1st & 2nd Semester BE 1st Semester B.Com 1st Semester BBA 1st Semester BCA (D) 1st Semester Bsc. IT (D) 1st Semester Bsc. IT 1 1st Semester M.Tech 1st Semester MCA 1st Semester MCA (D) 2nd Sem B.Com 2nd Sem BB 2nd Sem BBA 2nd Sem BCA 2nd Sem BCA (D) 2nd Sem BSC IT(D) 2nd Sem BSC(IT) 2nd Semester MBA A Foundation Course in Human Values and Professional Ethics ACCOUNTING FOR MANAGEMENT ADVANCE SOFTWARE ENGINEERING ADVANCED COMMUNICATION SYSTEMS ADVANCED MATHEMATICS FOR ENGINEERS Accounting and Financial Management Accounting and Financial Managementm Adolescence And Family Education B.Ed (Dec 2013) Adolescence And Family Education B.Ed (Dec 2014) Adolescence and Family Education B.Ed (2012) Advanced Accounting 2 Aligarh Muslim University Applied Physics 1 B.Ed (Dec 2008) B.Ed (Dec 2009) B.Ed (Dec 2011) B.Ed (Dec 2012) B.Ed (Dec 2013) B.Ed (Dec 2014) B.Ed (June 2008) B.Ed (June 2009) B.Ed (June 2015) BA 1 Syllabus BBA 1 BBA 2 BCA Question Papers BCA Syllabus 1 Bachelor in Science Fashion and Technology Basic Accounting Basic Chemistry Basic Electrical Engineering Basic Electronics Basic Mathematics BSC 1 Basoc Accounting Bridge Course in Mathematics Bsc.IT Business Communication-1 Business Communication-2 Business Communication-I 2 Business Environment 2 Business Laws 1 Business Mathematics Business Organisation and Management Business Statistics 2 C C Programming C Programming Bsc IT 1 C Programming Lecture Videos CADM 1st Semester Communication 2 Communication Skills Communication Skills 1 Communication and Soft Skills Communicative English Computer Applications Computer Fundamental Computer Graphics Video Lecture Computer In Education B.Ed (Dec 2013) Computer Mathematical Foundation MCA D Computer Networks 1st Semester Computer Operating System Computer Organization and Assembly Language Computer System Architecture 2 Computer and Education B.Ed (Dec 2011) Computer and Education B.Ed (Dec 2012) Computer in Education B.Ed (Dec 2008) Computer in Education B.Ed (Dec 2009) Computer in Education B.Ed (Dec 2014) Corporate Accounting Curriculum and Instruction B.Ed (Dec 2009) Curriculum and Instruction B.Ed (Dec 2011) Curriculum and Instruction B.Ed (Dec 2012) Curriculum and Instruction B.Ed (Dec 2013) Curriculum and Instruction B.Ed (Dec 2014) Curriculuman and Instruction B.Ed (Dec 2008) DATA COMMUNICATION NETWORK Data Structure 2 Data Structures 2 Data Structures Through C 2 Database Management with Microsoft Access Bsc IT 1 Delhi University News Desktop Publishing Tools 2 Digital Circuits and Logic Design 2 Digital Circuits and Logic Design 2 BCA D Digital Electronics 2 Digital Electronics Fundamentals 2 Distance Education B.Ed (Dec 2008) Distance Education B.Ed (Dec 2009) Distance Education B.Ed (Dec 2011) Distance Education B.Ed (Dec 2012) Distance Education B.Ed (Dec 2013) Distance Education B.Ed (Dec 2014) Dot Net Interview Questions & Answers. ELECTRONICS SYSTEM DESIGN Education Technology B.Ed (Dec 2009) Education and Evaluation B.Ed (Dec 2009) Education and Society B.Ed (Dec 2008) Education and Society B.Ed (Dec 2009) Education and Society B.Ed (Dec 2011) Education and Society B.Ed (Dec 2012) Education and Society B.Ed (Dec 2013) Education and Society B.Ed (Dec 2014) Educational Evaluation B.Ed (Dec 2008) Educational Evaluation B.Ed (Dec 2011) Educational Evaluation B.Ed (Dec 2012) Educational Evaluation B.Ed (Dec 2013) Educational Evaluation B.Ed (Dec 2014) Educational Technology B.Ed (Dec 2008) Educational Technology B.Ed (Dec 2011) Educational Technology B.Ed (Dec 2012) Educational Technology B.Ed (Dec 2013) Engineering Drawing and Graphics Engineering Mathematics Engineering Question Paper set 1 Engineering Syllabus English and Communication Skills English and Communication Skills 2 Environmental Science 2 Finaicial Accounting Financial Accounting Financial Management 2 Sem Fundamentals of Information Technology Bsc 1 Guidance and Counseling B.Ed (Dec 2008) Guidance and Counseling B.Ed (Dec 2011) Guidance and Counseling B.Ed (Dec 2012) Guidance and Counseling B.Ed (Dec 2013) Guidance and counseling B.Ed (Dec 2009) HIV and Aids Education B.Ed (Dec 2011) HIV and Aids Education B.Ed (Dec 2012) HIV and Aids Education B.Ed (Dec 2013) HP University News Hotel Management and Air Lines Syllabus Human Resource Management Human Resource Management 2 Information Management Information Technology for Management Intoduction to microprocessor 2 BCA D Introduction of Computers BBA1 Introduction to Computers 2 Introduction to I.T MCA D Introduction to Information Technology Introduction to Information Technology(BCA) Kurukshetra University News Lecture 20 Clipping -- Lines And Polygons MBA Papers MCA Notes MCA Question Papers Macro Economics 2 Management Syllabus Managerial Economics Marketing Management 2 Master Of Technology M-Tech Syllabus Mercantile Law 2 Metal Cutting Question Paper Metal Forming Question Paper Micro Economics NEURAL NETWORKS & FUZZY LOGIC Network Security OOP CPP 2 Object Oriented Programming in C++ Object Oriented Programming in Cpp Operating System Bsc IT 1 Operating system (BCA) Organisational Behaviour Organization Behaviour 2 Other Universities Others PCM 2 BCA D PGDCA PTU Affiliated Colleges of Integerated College PTU Affiliated Colleges of Management College PTU Affiliated Colleges of Architecture PTU Affiliated Colleges of Engineering PTU Affiliated Colleges of Pharmacy College PTU Forms Download PTU News and Events Panjab University News Pharmacy Syllabus Principles and Practices of Management Production and Operations Management 2 Programming Logic Development with C Programming in C Programming in C MCA D Psychology of Learning and Development B.Ed (Dec 2013) Psychology of Learning and Development B.Ed (Dec 2008) Psychology of Learning and Development B.Ed (Dec 2009) Psychology of Learning and Development B.Ed (Dec 2011) Psychology of Learning and Development B.Ed (Dec 2012) Quantitative Techniques RDBMS 2 RDBMS-I 2 Relational Database Management System Research Methodology 2 SAD 2 BCA D Syllabus of Computer Applications Syllabus of Journalism and Mass Communication Syllabus of Medical Laboratory Science System Analysis and Design System Analysis and Design 2 System Analysis and Design MCA D Teacher and School B.Ed (Dec 2008) Teacher and School B.Ed (Dec 2009) Teacher and School B.Ed (Dec 2011) Teacher and School B.Ed (Dec 2012) Teacher and School B.Ed (Dec 2013) Teacher of English B.Ed (Dec 2009) Teaching of English B.Ed (Dec 2008) Teaching of English B.Ed (Dec 2011) Teaching of English B.Ed (Dec 2012) Teaching of English B.Ed (Dec 2013) Teaching of Mathematics B.Ed (Dec 2009) Teaching of Mathematics B.Ed (Dec 2011) Teaching of Mathematics B.Ed (Dec 2012) Teaching of Mathematics B.Ed (Dec 2013) Teaching of Science B.Ed (Dec 2008) Teaching of Science B.Ed (Dec 2009) Teaching of Science B.Ed (Dec 2011) Teaching of Science B.Ed (Dec 2012) Teaching of Science B.Ed (Dec 2013) Teaching of Social Studies B.Ed (Dec 2008) Teaching of Social Studies B.Ed (Dec 2011) Teaching of Social Studies B.Ed (Dec 2012) Teaching of Social Studiess B.Ed (Dec 2013) Teaching of Social Study B.Ed (Dec 2009) Technical Communication UGC NET Computer Science Question Paper Uttarakhand Open University Video Lecture Web Technologies 1st Semester Web Technologies 2 Welding Technology Question Paper Workshop on IT and E-Commerce 2 data structures 2 BCA D principles of management 2