3
t B \.f I L l= L- C o 1 \ USN 1occPt3t23 First/Second Semester B.E. Degree Examination, June/July 2013 Gomputer Goncepts and C Programming Time:3 hrs. Max. Marks:100 Note: 1. Answer any FIVE full questions, choosing at least tteo from each parl 2. Answer all objective type questions only in OMR sheet page 5 of the answer booklet 3, Answer lo objective gpe questions on sheets other thsn OMR will not be valued. E ;h .= il 0tr .96 -ir 'i^ a3_ (Ji. E= ()< -i ..i z E PART _ A 1 a. Choose the correct answers fbr the following : i) The term dots per inch (dpi) relers to printer's A) resolution B) speed C) output is used to identily produc{ and provide information such as price. ii) B) Ba.r code reader D) Light sensitive detector B) High level language D) Machine level language (04 Marks) D) colours (06 Marks) (04 Marks) (04 Marks) (06lVlarks) b. c. d. A) Price check C) Numeric digit iii) is not a computer language. A) Assembly language C) Natural language Convert the following: i) (10101), :( ?)ro:( ?)ro iu) Which operating system first appeared with IBM PC? A) Windows B) Linux C) Mac OS D) DOS What is information processing cycle? Explain four steps with flow chart. (04 Marks) With a neat diagram, explain lunctions of each units of basic model of computer. (06 Marks) a. Choose the correct answers for the following : D _ is two or more LAN's connected together across large geographical area. A) GAN B) LAN C) WAN D) MLAN ii) Temporary storage in main memory is called as A) Buffer C) Tirtary memory B) Secondary memory D) None ofthese iiD Which of the following unit represents largest amount of data? A) Kilobfe B) Terablte C) Gigable D) Megable iv) Identif-rcation number of every computer connected to internet is _. A) Sub net mask B) Gate way Explain basic components ofa network. C) MAC address D) IP address b. c. d. 3a. Define operating system. Discuss functions of operating system. Choose the correct answers for the following : i) The number 0987 is _ integer. iD What kind of language is C? A) Machine language C) Assembly language Explain working ofhard disk with a neat diagram. Give advantages and disadvantages. A) octal B) decimal (06 Marks) (04 Marks) C) hexadecimal D) invalid B) Procedural language D) Object oriented language 1 of3 For More Question Papers Visit - www.pediawikiblog.com For More Question Papers Visit - www.pediawikiblog.com www.pediawikiblog.com

Computer Concepts & C Programming June 2013 (2010 Scheme)

Embed Size (px)

Citation preview

Page 1: Computer Concepts & C Programming June 2013 (2010 Scheme)

t B \.f I L l=L- C o 1 \USN 1occPt3t23

First/Second Semester B.E. Degree Examination, June/July 2013

Gomputer Goncepts and C Programming

Time:3 hrs. Max. Marks:100

Note: 1. Answer any FIVE full questions, choosing at least tteo from each parl2. Answer all objective type questions only in OMR sheet page 5 of the answer booklet3, Answer lo objective gpe questions on sheets other thsn OMR will not be valued.

E

;h

.= il

0tr

.96

-ir'i^

a3_(Ji.

E=

()<-i ..i

z

E

PART _ A1 a. Choose the correct answers fbr the following :

i) The term dots per inch (dpi) relers to printer'sA) resolution B) speed C) output

is used to identily produc{ and provide information such as price.ii)B) Ba.r code readerD) Light sensitive detector

B) High level languageD) Machine level language

(04 Marks)

D) colours

(06 Marks)

(04 Marks)

(04 Marks)(06lVlarks)

b.

c.d.

A) Price checkC) Numeric digit

iii) is not a computer language.A) Assembly languageC) Natural language

Convert the following:i) (10101), :( ?)ro:( ?)ro

iu) Which operating system first appeared with IBM PC?A) Windows B) Linux C) Mac OS D) DOS

What is information processing cycle? Explain four steps with flow chart. (04 Marks)With a neat diagram, explain lunctions of each units of basic model of computer. (06 Marks)

a. Choose the correct answers for the following :

D _ is two or more LAN's connected together across large geographical area.A) GAN B) LAN C) WAN D) MLAN

ii) Temporary storage in main memory is called as

A) BufferC) Tirtary memory

B) Secondary memoryD) None ofthese

iiD Which of the following unit represents largest amount of data?A) Kilobfe B) Terablte C) Gigable D) Megable

iv) Identif-rcation number of every computer connected to internet is _.A) Sub net mask B) Gate way

Explain basic components ofa network.C) MAC address D) IP address

b.

c.d.

3a.

Define operating system. Discuss functions of operating system.

Choose the correct answers for the following :

i) The number 0987 is _ integer.

iD What kind of language is C?A) Machine languageC) Assembly language

Explain working ofhard disk with a neat diagram. Give advantages and disadvantages.

A) octal B) decimal

(06 Marks)

(04 Marks)

C) hexadecimal D) invalid

B) Procedural languageD) Object oriented language

1 of3

For More Question Papers Visit - www.pediawikiblog.com

For More Question Papers Visit - www.pediawikiblog.com

www.pediawikiblog.com

Page 2: Computer Concepts & C Programming June 2013 (2010 Scheme)

3 a. iir) The result after evaluating the expression 112 * 4 isA) 0.2s B)2 Q)0

iv) What is the output if following program executed?main ( ){

print("%d", 'A');)

A) 6s B)A c) "A"b.. Explain software development and life cycle.c.'- What are identifiers? Discuss the rules to be followed while

exampies.

data types.

4 a. Choose the coffect answers for the following :

i) An operator which acts on two operands to produce result is

A) ternary B) binary C) unaryii) The modulus operator (%) can be used only for _ values.

d. Explain format specifiers used in scanf( ) function to read unt, float, char, double and longint

A) floatingC) both integer and floating

iiil In C, TRUE is represented by

B) integerD) all data type

C) non-zero D) 1

iii) i%: t/3

10ccP13i23

D) 0.12s

D) ElTor(04 Marks)

naming ideirtifiers. Give(06 Marks)

(06 Marks)

(04 Marks)operator.

D) complex

+igive flow(06 Marks)

(10 Marks)

(04 Marks)

D) char

D) actual

D) blank space (.b)

b.

A) true B) zeroiv) Which of the following is not valid assignment statement?

A)i+j=23 B)j-23 C)j+:23 D)j=23Write C program to swap values of twci integers without using third variable and

chan lor the same.Find the result of each of the following expressions with i: 4, j:2,k: 6, a- 2.

i) kx:i+jiv) m-i+(i :2+k)

ii) j:i/:kv, a= i*(11 =W2)

PART - B5 a. Choose the-correct answers for the following :

i) In c, .default return type of function isA) void B) intParameters used in function call are

A) formal B) localEvery C program must haveA) user defined functionC) main function

ii)

iii)

b.

c.d.

C) floatparameters.

C) dummy

B) standard functionD) library function

ir) Arguments of a function are separated withA)comma(,) B) semicolon(;) C) colon(: )

Write C program to print n fibbonacci numbers using function. (08 Marks)Differentiate call by value and call by address parameter passing mechanisms. (04 Marks)

Explain the scope of local and global variables with simple example. (04 Marks)

6 a. Choose the correct answers for the following :

i) break statement can be used in

-.A) if B) if - else

2 of3

C) nested if D) while

(04 Marks)

For More Question Papers Visit - www.pediawikiblog.com

For More Question Papers Visit - www.pediawikiblog.com

www.pediawikiblog.com

Page 3: Computer Concepts & C Programming June 2013 (2010 Scheme)

6 a. ii) Which of the following is not comparator operator in C?A)< B)> c):

iii) What is the output if following loop is executed?lbr (i : 1; i < 5; i++); printf ("VTU");

A) syntax errorC) VTUVTUVTUVTU

A)1C) depends in size of array

B) VTUD) VTUVTUVTUVTUVTU

B)0D) not fixed and assigned at run-time.

10ccP13/23

D) !-

D) none ofthesei+',.i

ir) while (0) {printf ("CCP")}, how many times this loop will execute?A)0 B)1 C1 error D) infinite times

b. Write C program to find roots of quadratic equation. Consider all possible cases of roots.(06 Marks)

c. Write C program to evaluate tbllowing expression:

7 a. Choose the corect answers for the following :

i) The subscript of hrst item olan array in C is always _.

(04 Marks)

(04 Marks)

2ttanswer - l+x*I-+I-., x

+........ using function. (06 Marks)2t 3t. 4l "d. Dilferentiate pre-test and post-test loops. Illustrate your answer with a suitable example.

ii) ln a rariable length string. the string ends with delimiter.

A) \n B) \o c) \Iiii) Which of the fbllowing is correct declaration of anay in C?

A) int marks [3 + a];C) int marks [2 2];

iv) ASCII stands for

B) float marks [5.5];D) int marks [5];

A) American Standard Code for International InformationB) American Standard Company for International IntegrationC)American Standard Code lor lnternational lntegrationD) American Standard Code for Information Interchange.

b.

8a.

Write C program to search an element from unsorted list using binary search. (12 Marks)What is the difl'erence between a character and a string containing a single character?

B) accurate C) completeSingle sequential llow ofcontrol within a program isA) thread B) instruction C) program D) none ofthesePOSIX stands forA) Preliminary Operating System Integration for extended system--B) Portable Operating System Interface for UnixC) Preliminary Operating System lnte.Ace ior Un;* .-. ,, , r

D)Por1ableoperatingSystemIntegrationforUnix.ir)

A) Application Programming Interface B) ApplicationC) Application Processing Interface D)Application

Explain motivating lactors for parallelism.,, ": .. -r' ,

What are Open MP directives which help in synchronization o;f task? Explain.ii; l':$r'

* * * x )F ,F].

3of3 :'

Choose the correct answers for the following :

i) Parallel computing isA) serial

execution of instructions.

(04 Marks)

(04 Marks)

D) sequential

Information(06 Marks)(04 Marks)(06 Marks)

ii)

iiD

b.

c.d.

For More Question Papers Visit - www.pediawikiblog.com

For More Question Papers Visit - www.pediawikiblog.com

www.pediawikiblog.com