Docsity

Structured Programming in C - Exam Paper 2012 | CSCE 206, Exams of Computer Science

Partial preview of the text

Download Structured Programming in C - Exam Paper 2012 | CSCE 206 and more Exams Computer Science in PDF only on Docsity!

CSCE 206 Structured Programming in C (501, 502, 503) E. tm 2012 Fall Exam3 21. Which of the follow is the correct form for a constant string that has the value a? = C A tat Ba) ~ Form A ~ 3 Name: UIN: Section: aoa 22, Which ofthe following isthe last character in ALL strings. C a 2: San eee RE ike SER ts pene n e 3 the calling function. 3s i, iene PA Peleeremioon: p=) 014/ and *p = 4) ue : ‘ pointer 19 int, the expressions Tee bs ace we ings eae memory adress of a object T a ie 5 lina a ng 08 T 23. What is the output of the following code’ 6. Anaeg Uecker 7. Variable-length array can be declared as global variable (outside any function). r © Se canbe interpre as a points the flowing code comet. F 9, When an array is passed as an argument to a function, the array base address is passed in for use in the function. T 10, When a multicimesona ary i esived a an egument, size of al he dimensions must be ‘explicitly given in the function definition. 11, Given the following declaration: int A(20}2 int * p= &(AI2}); points tothe second element of array A. F {2 fUNUOOPIRESi isnt fhe Hos in which tis defied an itn sobbtocks T 13; externvariable makes variables visible to all compilation unis, thus should be used a lot. F 14,-A static variable defined inside a block is immoral, meaning is born when the program sans Sod ina i poe od 15, Two different struct types cannot have ele tr ance F 16. mal locand cal loc are defined in library, gE 17. The string in C language is represented as a character array, T ‘18. The typedef keyword is used for defining a new name for an existing type. 19, Functions canbe defined as static. ‘Multiple choice questions 20, What format is used to display a string ina print£()? A A ts Bat C tc D. at