Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
11.What will be the output : main() { printf (“only stupids use C?”);
display ();} : Infinite
13.What will be the output : main () { int j; for (j=0; j<10; j++) { if (j==1)
break : Nothing
19.Point out the error if any : diamond : ; is not allowed after switch
39.A variable constant must have atleast one digit/ alphabat/ special
symbol.
Correct Answer 2
Your Answer 2
True/False
Question Initialisation of the conditional variable is necessary for while loop.
True/False
Question A structure variable can be passed to a function.
Your Answer %u
True/False
Question One structure can be nested within another structure.
Your Answer Temple is a non-issue , Andhi is never stable , Mandl will ruin India
Correct Answer do
Your Answer do
Your Answer To split the use cases into smaller activities or tasks with specifi goals
Correct Answer --
Your Answer /* .. */
True/False
Question "r" is a read mode to open a file which is a character not a string.
Correct Answer It must have main() function , Each statement must end with ';'
Your Answer It must have main() function , Each statement must end with ';'
True/False
Question In sense of time activity is longer and the action is relatively instantaneous.
True/False
Question strdup() duplicates a string.
True/False
Question printf is used to display the output at runtime.
True/False
Question While passing an array elements to a function by call by value we pass
values of array elements to the function
Correct Answer True
Correct Answer 0
Your Answer 0
Correct Answer =
Your Answer =
Correct Answer The same data type placed next to each other in memory
Your Answer The same data type placed next to each other in memory
True/False
Question When array elements are passed to a function with call by reference,
function has pointer arguments.
Correct Answer True
Implementation Model Converts design object model Converts design object model
to implementation model to implementation model
based on reusable based on reusable component
component technology. technology.
Test Model Stipulates test strategy, test Stipulates test strategy, test
plans, test specifications, test plans, test specifications, test
results and test recovary results and test recovary
reports. reports.
Analysis Object Model Presents information how Defines actors inside and
object model will be executed. outside of use case and their
behaviour.
Use case Model Defines actors inside and Presents information how
outside of use case and their object model will be executed.
behaviour.
True/False
Question The set of statements belongining to a function are enclosed within a pair
of braces.
Correct Answer True
Correct Answer 32
Your Answer 32
True/False
Question One structure can be nested within another structure.
True/False
Question Comments cannot be nested.
True/False
Question Input / Output instructions are used to perform the function of supplying
input data to a program and obtaining the output results from it.
Correct Answer True
True/False
Question printf is used to display the output at runtime.
True/False
Question The value of the conditional variable should become false some time so
that the loop can be terminated.
Correct Answer True
Correct Answer 25
Your Answer 25
True/False
Question strncpy() copier first n character of one string into anoter.
True/False
Question Infinite loop is the loop which stops when the condtions is false.
True/False
Question Comments cannot be nested.
Your Answer 10 , 11
Your Answer a , r , r+
Your Answer To split the use cases into smaller activities or tasks with specifi goals
Correct Answer Handling of new lines , representation of end of file , storage of numbers.
True/False
Question If the file is absent, fopen() returns NULL.
Your Answer %u
True/False
Question An Integer is a Primary Constant
True/False
Question argv is an array of pointers.
True/False
Question When array elements are passed to a function with call by reference,
function has pointer arguments.
Correct Answer True
True/False
Question strlen() doesn't count '\0' in a length.
True/False
Question On pointer variable can be substracted from another provided both
variables point to elements of the same array.
Correct Answer True
True/False
Question strdup() duplicates a string.
Correct Answer \0
Your Answer \0
Correct Answer 2
Your Answer 2
Your Answer +++ no such operator , ;' is required at the end of while
True/False
Question Whenever the control returns from a function some value is definitely
returned except for void function..
Correct Answer True
True/False
Question strlen() doesn't count '\0' in a length.
True/False
Question Primary and Secondary are the two types of constants in C.
True/False
Question In case of array of pointers to strings, we can receive the strings from
keyboard using scanf()
Correct Answer False
Your Answer 11 , 10
True/False
Question Default statement is optional in switch.
True/False
Question A structure variable can be passed to a function.
True/False
Question A function can return only one value at a time.
True/False
Question Input / Output instructions are used to perform the function of supplying
input data to a program and obtaining the output results from it.
Correct Answer True
True/False
Question Through behavior modeling we understand relationships, nature of
interactions and response between various elements of the system. The
behavior model throws light on functionality, features and outputs within
the framework of conditions and constraints over a period of time.
Correct Answer True
Correct Answer if
Your Answer if
True/False
Question In an array of structures all elements of the array are stored in adjacent
memory locations.
Correct Answer True
True/False
Question The keywords should not be used as variables.
True/False
Question The set of statements belongining to a function are enclosed within a pair
of braces.
Correct Answer True
True/False
Question Only one comment can be given in a C program
True/False
Question All structure elements are stored in contiguous memory locations.
True/False
Question In Low Level Disk I/O functions, buffer management has to be done
explicitly by the programmer.
Correct Answer True
True/False
Question A pointer is a secondary constant.
Correct Answer No
Your Answer ^
Correct Answer It must have main() function , Each statement must end with ';'
Your Answer It must have main() function , Each statement must end with ';' , Each
statement should be written on new line.
Your Answer 65 , 67
True/False
Question Structure variable appears before the '.' while accessing the individual
element of a structure
Correct Answer True
x++ = ( if x = 0 ) 1 1
--x = ( if x = 0 ) -1 -1
x+=5 = ( if x = 0) 5 5
True/False
Question Infinite loop is the loop which stops when the condtions is false.
True/False
Question If the file is absent, fopen() returns NULL.
Correct Answer !=
Correct Answer 2
Your Answer 3
Correct Answer %s
Your Answer %s
Correct void
Answer
Your Answer void
Correct =
Answer
Your Answer =
Correct The same data type placed next to each other in memory
Answer
Your Answer The same data type placed next to each other in memory
Correct True
Answer
Your Answer True
Correct strrev
Answer
Your Answer strrev
True/False
Question Infinite loop is the loop which stops when the condtions is false.
Correct False
Answer
Your Answer False
True/False
Question Comments cannot be nested.
LIST OF ATTEMPTED QUESTIONS AND ANSWERS
True/False
Question Primary and Secondary are the two types of constants in C.
Correct Answer True
Your Answer False
True/False
Question An Array is a Primary Constant
Correct Answer False
Your Answer True
True/False
Question Initialisation of the conditional variable is necessary for while loop.
Correct Answer True
Your Answer True
True/False
Question If break is not used in cases, compiler gives an error.
Correct Answer False
Your Answer False
True/False
Question The set of statements belongining to a function are enclosed within a pair of braces.
Correct Answer True
Your Answer True
True/False
Question In an array of structures all elements of the array are stored in adjacent memory
locations.
Correct Answer True
Your Answer True
True/False
Question puts() can display only one string at a time.
Correct Answer True
Your Answer False
True/False
Question Middle Level Language is the language which has both good programming efficiency
and a good machine efficiency
Correct Answer True
Your Answer True
True/False
Question Once file is open it is always refered by its FILE pointer
Correct Answer True
Your Answer True
True/False
Question While passing an array elements to a function by call by value we pass values of
array elements to the function
Correct Answer True
Your Answer True
LIST OF ATTEMPTED QUESTIONS AND ANSWERS
True/False
Question A function can return only one value at a time.
Correct Answer True
Your Answer True
True/False
Question argv is an array of pointers.
Correct Answer True
Your Answer True
True/False
Question Comments cannot be nested.
Correct Answer True
Your Answer True
True/False
Question When array elements are passed to a function with call by reference, function has
pointer arguments.
Correct Answer True
Your Answer True
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 Dynamic state
True/False
Question A constant is a quantity that doesn't change
Correct Answer True
Your Answer True
True/False
Question The interaction diagrams are not good enough if behaviour of object is conditional
and gets into a loop.
Correct Answer True
Your Answer False
True/False
Question The control instructions determine the 'flow of control' in a program.
Correct Answer True
Your Answer True
\b backspace bakslash
\t tab tab
True/False
Question Functions are written to avoid rewriting the same section of code which requires
oftenly.
Correct Answer True
Your Answer True
addition(int,int); return an integer value which passes 2 integer arguments Both arguments of float
type which returns real value.
addition(); an integer function with no arguments an integer function with no arguments
float addition(int, float); a float function having integer and float type arguments a float function
having integer and float type arguments
char addition(char,char); a char function having 2 arguments of char type a char function having 2
arguments of char type
True/False
Question In collaboration diagrams, the connection between objects is shown.
Correct Answer True
Your Answer True
True/False
Question Logical operators cannot be used with 'do' loop.
Correct Answer False
Your Answer False
True/False
Question In TSD based client server architecture, the user interface is
loosely coupled with the data.
Correct Answer False
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
True/False
Question Functions are written to avoid rewriting the same section of code
which requires oftenly.
Correct Answer True
Your Answer True
True/False
Question switch requires an integer expression.
Correct Answer True
Your Answer True
True/False
Question One structure can be nested within another structure.
Correct Answer True
Your Answer True
True/False
Question Standard I/O functions are nothing but stream I/O functions.
Correct Answer True
Your Answer True
True/False
Question Default statement is optional in switch.
Correct Answer True
Your Answer False
True/False
Question Formal and Actual arguments cannot be same.
Correct Answer False
Your Answer False
True/False
Question Logical operators cannot be used with 'do' loop.
Correct Answer False
Your Answer False
True/False
Question The sequence diagram shows flow of behaviour and
collaboration of objects.
Correct Answer False
Your Answer True
True/False
Question If the file is absent, fopen() returns NULL.
Correct True
Answer
Your Answer True
Correct +,-
Answer
Your Answer =
Correct indirection
Answer
Your Answer indirection
True/False
Question printf is used to display the output at runtime.
Correct True
Answer
Your Answer True
True/False
Question strrchr() find first occurrence of a given character in a string.
Correct False
Answer
Your Answer True
Correct fgetc
Answer
Your Answer fgetc
Correct *
Answer
Your Answer &
Correct False
Answer
Your Answer True
True/False
Question The keywords are also called as 'Reserved Keywords'
Correct True
Answer
Your Answer True
True/False
Question Only one comment can be given in a C program
Correct False
Answer
Your Answer False
True/False
Question
Functions are written to avoid rewriting the same section of code
which requires oftenly.
Correct Answer
True
Your Answer
True
True/False
Question
A structure variable can be passed to a function.
Correct Answer
True
Your Answer
True
True/False
Question
When function is called by itself, it is known as recursive function.
Correct Answer
True
Your Answer
True
True/False
Question
There is no three dimensional array
Correct Answer
False
Your Answer
True
True/False
Question
Only one comment can be given in a C program
Correct Answer
False
Your Answer
False
True/False
Question
strstr() finds number of occurences of a give string in another string.
Correct Answer
False
Your Answer
False
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
True/False
Question
Real falls under secondary constant
Correct Answer
False
Your Answer
False
Labels: C Programming
C Programming - 2
True/False
Question
Control instructions are used to control the sequence of execution of
various statements in program
Correct Answer
True
Your Answer
True
True/False
Question
One structure can be nested within another structure.
Correct Answer
True
Your Answer
False
True/False
Question
Arithmetic instructions are used to control the sequence of execution
of various statements in program
Correct Answer
False
Your Answer
True
True/False
Question
A function can return only one value at a time.
Correct Answer
True
Your Answer
True
True/False
Question
Logical operators cannot be used with 'do' loop.
Correct Answer
False
Your Answer
False
True/False
Question
switch requires an integer expression.
Correct Answer
True
Your Answer
False
True/False
Question
Just like array of int / float, there can be array of pointers.
Correct Answer
True
Your Answer
True
True/False
Question
The set of statements belongining to a function are enclosed within a
pair of braces.
Correct Answer
True
Your Answer
True
True/False
Question
The default prototype of any C function is 'int'.
Correct Answer
True
Your Answer
True
True/False
Question
The keywords should not be used as variables.
Correct Answer
True
Your Answer
True
Labels: C Programming
C Programming - 1
True/False
Question
If the file is absent, fopen() returns NULL.
Correct Answer
True
Your Answer
True
True/False
Question
When array elements are passed to a function with call by reference,
function has pointer arguments.
Correct Answer
True
Your Answer
False
True/False
Question
When array is declared with rows and columns it is called as 2-D i.e.
two dimensional array
Correct Answer
True
Your Answer
True
True/False
Question
strupr() function is used to convert a string into upper case.
Correct Answer
True
Your Answer
True
True/False
Question
scanf is used to accept the input from the user.
Correct Answer
True
Your Answer
True
True/False
Question
A value of object changes when event occurs.
Correct Answer
True
Your Answer
True
True/False
Question
There are basically 5 types of instructions in C
Correct Answer
False
Your Answer
True
True/False
Question
All structure elements are stored in contiguous memory locations.
Correct Answer
True
Your Answer
True
True/False
Question
The return statement should present at the end of the called function.
Correct Answer
False
Your Answer
True
True/False
Question
While passing an array elements to a function by call by value we pass
values of array elements to the function
Correct Answer
True
Your Answer
True
True/False
Question In TSD based client server architecture, the user interface is
loosely coupled with the data.
Correct Answer False
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
True/False
Question Functions are written to avoid rewriting the same section of
code which requires oftenly.
Correct Answer True
Your Answer True
True/False
Question switch requires an integer expression.
Correct Answer True
Your Answer True
True/False
Question One structure can be nested within another structure.
Correct Answer True
Your Answer True
True/False
Question Standard I/O functions are nothing but stream I/O functions.
Correct Answer True
Your Answer True
True/False
Question Default statement is optional in switch.
Correct Answer True
Your Answer False
True/False
Question Formal and Actual arguments cannot be same.
Correct Answer False
Your Answer False
True/False
Question Logical operators cannot be used with 'do' loop.
Correct Answer False
Your Answer False
True/False
Question The sequence diagram shows flow of behaviour and
collaboration of objects.
Correct Answer False
Your Answer True
C Programming - 5
True/False
Question A function can return only one value at a time.
Correct Answer True
Your Answer True
True/False
Question argv is an array of pointers.
Correct Answer True
Your Answer True
True/False
Question Comments cannot be nested.
Correct Answer True
Your Answer True
True/False
Question When array elements are passed to a function with call by
reference, function has pointer arguments.
Correct Answer True
Your Answer True
True/False
Question A constant is a quantity that doesn't change
Correct Answer True
Your Answer True
True/False
Question The interaction diagrams are not good enough if behaviour of
object is conditional and gets into a loop.
Correct Answer True
Your Answer False
True/False
Question The control instructions determine the 'flow of control' in a
program.
Correct Answer True
Your Answer True
\b backspace bakslash
\t tab tab
True/False
Question Functions are written to avoid rewriting the same section of
code which requires oftenly.
Correct Answer True
Your Answer True
float addition(int, float); a float function having integer and float type
arguments a float function having integer and float type arguments
True/False
Question In collaboration diagrams, the connection between objects is
shown.
Correct Answer True
Your Answer True
True/False
Question Logical operators cannot be used with 'do' loop.
Correct Answer False
Your Answer False
C Programming - 4
True/False
Question Primary and Secondary are the two types of constants in C.
Correct Answer True
Your Answer False
True/False
Question An Array is a Primary Constant
Correct Answer False
Your Answer True
True/False
Question Initialisation of the conditional variable is necessary for while
loop.
Correct Answer True
Your Answer True
True/False
Question If break is not used in cases, compiler gives an error.
Correct Answer False
Your Answer False
True/False
Question The set of statements belongining to a function are enclosed
within a pair of braces.
Correct Answer True
Your Answer True
True/False
Question In an array of structures all elements of the array are stored
in adjacent memory locations.
Correct Answer True
Your Answer True
True/False
Question puts() can display only one string at a time.
Correct Answer True
Your Answer False
True/False
Question Middle Level Language is the language which has both good
programming efficiency and a good machine efficiency
Correct Answer True
Your Answer True
True/False
Question Once file is open it is always refered by its FILE pointer
Correct Answer True
Your Answer True
True/False
Question While passing an array elements to a function by call by
value we pass values of array elements to the function
Correct Answer True
Your Answer True