C Programming SCDL Assignment
SCDL Assignment on C Programming
SCDL Assignment of PGDIT
SCDL Assignment on C Programming
SCDL Assignment of PGDIT
True/False
Question
Functions are written to avoid rewriting the same section of code which requires oftenly.
Correct Answer
True
Your Answer
True
Multiple Choice Single Answer
Question
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 Answer
Question
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/False
Question
A structure variable can be passed to a function.
Correct Answer
True
Your Answer
True
Select The Blank
Question
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 Blank
Question
The link between the program and the operating systme is a structure called ________
Correct Answer
FILE
Your Answer
stream
Multiple Choice Multiple Answer
Question
When an array has both rows and columns it is called as:-
Correct Answer
2-D array , Matrix
Your Answer
2-D array
True/False
Question
When function is called by itself, it is known as recursive function.
Correct Answer
True
Your Answer
True
Select The Blank
Question
________ is an assignment operator.
Correct Answer
=
Your Answer
==
Multiple Choice Multiple Answer
Question
Two dimensional array has :-
Correct Answer
Rows , Columns
Your Answer
Rows , Columns
Multiple Choice Single Answer
Question
A single dimensional array has :-
Correct Answer
Only rows
Your Answer
Dimension never refers to no. of rows and columns.
Select The Blank
Question
Operation between ________ and integer always yields an integer result
Correct Answer
an integer
Your Answer
an integer
Multiple Choice Single Answer
Question
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/False
Question
There is no three dimensional array
Correct Answer
False
Your Answer
True
Multiple Choice Single Answer
Question
Which function is used to close a file?
Correct Answer
fclose
Your Answer
fclose
Multiple Choice Single Answer
Question
In logical AND :-
Correct Answer
Both the conditions have to be TRUE
Your Answer
Both the conditions have to be TRUE
Multiple Choice Single Answer
Question
The language used by UA to develop Object Oriented systems is :-
Correct Answer
UML
Your Answer
UML
Multiple Choice Single Answer
Question
A sequence diagram shows an interaction arranged in time sequence in its :-
Correct Answer
Logical order
Your Answer
Logical order
Multiple Choice Single Answer
Question
In this the condition is specified at the beginning of the loop :-
Correct Answer
while
Your Answer
while
Multiple Choice Multiple Answer
Question
Which of the following are basic data types in C?
Correct Answer
int , float , char
Your Answer
int , float , char
Multiple Choice Single Answer
Question
Use case steps are executed in :-
Correct Answer
Logical order
Your Answer
Serial order
Match The Following
Question
Correct Answer
Your Answer
Access Layer under OOA
Objects whose role is to communicate to data storage.
Objects whose role is to communicate to data storage.
Layered architecture under TSD
User interface tightly coupled with data
Objects with which user interacts.
Business Layer under OOA
Objects that represent business with data and behaviour.
Objects that represent business with data and behaviour.
UI layer under OOA
Objects with which user interacts.
User interface tightly coupled with data
Multiple Choice Multiple Answer
Question
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 Answer
Question
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 character
Multiple Choice Multiple Answer
Question
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 Answer
Question
This funciton is used to convert a string to lowercase :-
Correct Answer
strlwr
Your Answer
strlwr
Multiple Choice Multiple Answer
Question
Which of the following functions are used for formatted input/output operations?
Correct Answer
printf , scanf
Your Answer
printf , scanf , getch()
Select The Blank
Question
Any C statement ends with ________.
Correct Answer
;
Your Answer
;
Multiple Choice Single Answer
Question
The approach of object oriented analysis and design that centers on understanding how the system is actually used is :-
Correct Answer
Use-case-driven design
Your Answer
Object oriented system
Multiple Choice Single Answer
Question
Which funciton is used to append first n characters of a string at the end of another?
Correct Answer
strncat
Your Answer
strncat
Multiple Choice Single Answer
Question
UML uses :
Correct Answer
OCL [ object Constraint Language ]
Your Answer
XML [ Extended mark up language ]
True/False
Question
Only one comment can be given in a C program
Correct Answer
False
Your Answer
False
Multiple Choice Single Answer
Question
It is an idendical function to strcmpi function :-
Correct Answer
stricmp
Your Answer
stricmp
Select The Blank
Question
________ means type of return value of a function.
Correct Answer
prototype
Your Answer
returntype
True/False
Question
strstr() finds number of occurences of a give string in another string.
Correct Answer
False
Your Answer
False
Match The Following
Question
Correct Answer
Your Answer
putch()
displays a single character
displays a single character
getche()
echoes a typed character
echoes a typed character, but an enter key should be hitted.
getch()
does not echo a typed character
echoes a typed character
getchar()
echoes a typed character, but an enter key should be hitted.
accepts a string
Multiple Choice Single Answer
Question
Individual element in the array can be referred with :-
Correct Answer
Subscript
Your Answer
Pointer
Select The Blank
Question
________ is logical OR operator
Correct Answer
Your Answer
Select The Blank
Question
In call by reference of passing array elements, the function argument is always ________
Correct Answer
Pointer
Your Answer
Pointer
Multiple Choice Multiple Answer
Question
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 , 65
Your Answer
65 , 67.000000
True/False
Question
The use case may begin with no precondition or with some preconditions.
Correct Answer
True
Your Answer
False
True/False
Question
If the value of a formal argument is changed in the called funciton, the corresponding changes take place in the calling funciton.
Correct Answer
False
Your Answer
False
Multiple Choice Multiple Answer
Question
Which of the following operators have 1st priority in operations?
Correct Answer
* , / , %
Your Answer
* , / , %
True/False
Question
Real falls under secondary constant
Correct Answer
False
Your Answer
False
Select The Blank
Question
The address of a structure ________ be passed to a function.
Correct Answer
can
Your Answer
can
No comments:
Post a Comment