Friday, September 26, 2008

C-programming SCDL Assignment

Multiple Choice Single Answer
Question
When the method is chosen and performed on the data, the object status changes. The static object assumes :-
Correct Answer Dynamic state
Your Answer Static state
True/FalseQuestion
Functions are written to avoid rewriting the same section of code which requires oftenly.
Correct Answer TrueYour Answer
TrueMultiple Choice Single AnswerQuestion
Use case defines and describes what happens in the system in logical order. This is termed as :-Correct Answer System behaviour
Your Answer System designing
Multiple Choice Single AnswerQuestion
Due to complex interactions, interaction diagrams are usually difficult to draw & read. The remedy for this is :-
Correct Answer To split the use cases into smaller activities or tasks with specifi goals
Your Answer To split the use cases into smaller activities or tasks with specifi goals
True/FalseQuestion
A structure variable can be passed to a function.
Correct Answer True
Your Answer True
Select The BlankQuestion
The address of the zeroth element can also be passed by just passing the ________ of the array.
Correct Answer Name
Your Answer Name
Select The BlankQuestion The link between the program and the operating systme is a structure called ________
Correct Answer FILE
Your Answer stream
Multiple Choice Multiple AnswerQuestion
When an array has both rows and columns it is called as:-
Correct Answer 2-D array , Matrix
Your Answer 2-D array
True/FalseQuestion
When function is called by itself, it is known as recursive function.
Correct Answer True
Your Answer True
Select The BlankQuestion
________ is an assignment operator.
Correct Answer =
Your Answer ==
Multiple Choice Multiple AnswerQuestion
Two dimensional array has :-
Correct Answer Rows , Columns
Your Answer Rows , Columns
Multiple Choice Single AnswerQuestion
A single dimensional array has :-
Correct Answer Only rows
Your Answer Dimension never refers to no. of rows and columns
Select The BlankQuestion Operation between ________ and integer always yields an integer result
Correct Answer an integer
Your Answer an integer
Multiple Choice Single AnswerQuestion
Studying system domain, identifying classes & objects with their properties and expressing them with eight notations/diagrams is called as
Correct Answer Object modeling of system.
Your Answer Object modeling of system.
True/FalseQuestion
There is no three dimensional array
Correct Answer False
Your Answer True
Multiple Choice Single AnswerQuestion
Which function is used to close a file?
Correct Answer fclose
Your Answer fclose
Multiple Choice Single AnswerQuestion
In logical AND :-
Correct Answer Both the conditions have to be TRUE
Your Answer Both the conditions have to be TRUEMultiple
Choice Single AnswerQuestion
The language used by UA to develop Object Oriented systems is :-
Correct Answer UML
Your Answer UML
Multiple Choice Single AnswerQuestion
A sequence diagram shows an interaction arranged in time sequence in its :-
Correct Answer Logical order
Your Answer Logical order
Multiple Choice Single AnswerQuestion
In this the condition is specified at the beginning of the loop :-
Correct Answer while
Your Answer while
Multiple Choice Multiple AnswerQuestion
Which of the following are basic data types in C?
Correct Answer int , float , char
Your Answer int , float , char
Multiple Choice Single AnswerQuestion
Use case steps are executed in :-
Correct Answer Logical order
Your Answer Serial orderMatch
The FollowingQuestionCorrect AnswerYour AnswerAccess Layer under OOAObjects whose role is to communicate to data storage.Objects whose role is to communicate to data storage.Layered architecture under TSDUser interface tightly coupled with dataObjects with which user interacts.Business Layer under OOAObjects that represent business with data and behaviour.Objects that represent business with data and behaviour.UI layer under OOAObjects with which user interacts.User interface tightly coupled with data
Multiple Choice Multiple AnswerQuestion
What will be the output of the following main(){ char c='d';float f=1; printf("%c", c); printf("%f", c * f);}
Correct Answer d , 100.000000
Your Answer d , 100.000000
Multiple Choice Multiple AnswerQuestion
Which tasks are performed on opening a file in read mode?
Correct Answer searches a file on the disk , loading a file into memory in presense and returning NULL in case of absent , setting up a character pointer to the first character
Your Answer searches a file on the disk , loading a file into memory in presense and returning NULL in case of absent , setting up a character pointer to the first characterMultiple Choice Multiple AnswerQuestion
Which of the following functions are used to set all / n characters of a string to a given character?Correct Answer strset , strnset
Your Answer strchr
Multiple Choice Single AnswerQuestion
This funciton is used to convert a string to lowercase :-
Correct Answer strlwr
Your Answer strlwr
Multiple Choice Multiple AnswerQuestion
Which of the following functions are used for formatted input/output operations?
Correct Answer printf , scanf
Your Answer printf , scanf , getch()
Select The BlankQuestion
Any C statement ends with ________.
Correct Answer ;
Your Answer ;
Multiple Choice Single AnswerQuestion
The approach of object oriented analysis and design that centers on understanding how the system is actually used is :-Correct Answer Use-case-driven designYour Answer Object oriented systemMultiple Choice Single AnswerQuestion Which funciton is used to append first n characters of a string at the end of another?Correct Answer strncatYour Answer strncatMultiple Choice Single AnswerQuestion UML uses :Correct Answer OCL [ object Constraint Language ]Your Answer XML [ Extended mark up language ]True/FalseQuestion Only one comment can be given in a C programCorrect Answer FalseYour Answer FalseMultiple Choice Single AnswerQuestion It is an idendical function to strcmpi function :-Correct Answer stricmpYour Answer stricmpSelect The BlankQuestion ________ means type of return value of a function.Correct Answer prototypeYour Answer returntypeTrue/FalseQuestion strstr() finds number of occurences of a give string in another string.Correct Answer FalseYour Answer FalseMatch The FollowingQuestionCorrect AnswerYour Answerputch()displays a single characterdisplays a single charactergetche()echoes a typed characterechoes a typed character, but an enter key should be hitted.getch()does not echo a typed characterechoes a typed charactergetchar()echoes a typed character, but an enter key should be hitted.accepts a stringMultiple Choice Single AnswerQuestion Individual element in the array can be referred with :-Correct Answer SubscriptYour Answer PointerSelect The BlankQuestion ________ is logical OR operatorCorrect Answer Your Answer Select The BlankQuestion In call by reference of passing array elements, the function argument is always ________Correct Answer PointerYour Answer PointerMultiple Choice Multiple AnswerQuestion What will be the output of the following main(){ int i = 1; char c='A'; printf("%d",i * c); printf("%f",i * (c+2));}Correct Answer floating point error , 65Your Answer 65 , 67.000000True/FalseQuestion The use case may begin with no precondition or with some preconditions.Correct Answer TrueYour Answer FalseTrue/FalseQuestion If the value of a formal argument is changed in the called funciton, the corresponding changes take place in the calling funciton.Correct Answer FalseYour Answer FalseMultiple Choice Multiple AnswerQuestion Which of the following operators have 1st priority in operations?Correct Answer * , / , %Your Answer * , / , %True/FalseQuestion Real falls under secondary constantCorrect Answer FalseYour Answer FalseSelect The BlankQuestion The address of a structure ________ be passed to a function.Correct Answer canYour Answer canSelect The BlankQuestion After goto, ________ has to be mentioned to pass the control.Correct Answer label nameYour Answer label name

No comments: