C Programming Multiple Choice Single Answer

Share Embed Donate


Short Description

Download C Programming Multiple Choice Single Answer...

Description

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 Question C can be used on Correct Answer All the above Your Answer All the above Question The simple logic for system specifications is provided by a languages named :Correct Answer OCL [ Object Constraint Language ] Your Answer OOPL [ Object oriented Programming Language ] Question Which of the following is not a character constant Correct Answer 'Thank You' Your Answer 'Thank You' Question The method for industrial development of software based on use-case-driven design is Correct Answer OOSE [ Object Oriented Software Engineering ] Your Answer OOD [ Object Oriented Design ] Question How many types are there of arguments? Correct Answer two Your Answer two Question UML uses : Correct Answer OCL [ object Constraint Language ] Your Answer FGL [ Forth Generation Language ] 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 Question In sequence diagram, the horizontal arrowhead line shows Correct Answer Message 'from- to' Your Answer Sequence of events Question The collaboration diagram shows both :Correct Answer Collaboration and sequence Your Answer Collaboration and sequence Question In exponential form range of real constant the part that appears before 'e' is called Correct Answer mantissa Your Answer exponent and mantissa Question A function which is called is refered as :Correct Answer called function Your Answer called function Question Which of the following is a unformatted console I/O function to get a string input? Correct Answer gets Your Answer gets

Question Though the names of formal and actual arguments are similar, they are treated as different variables because they are :Correct Answer in different functions Your Answer in different functions Question In which type, the values are passed to a function? Correct Answer call by value Question Which of the following is a unformatted console I/O function to display a string? Correct Answer puts Your Answer puts Question The collaboration diagram shows interaction between objects and sequence of activities denoted by :Correct Answer Members Your Answer Methods Question The sequence diagram follows the following sequence :Correct Answer Use-case-transaction sequence Your Answer Use-case-transaction sequence Question Which type of I/O functions are used to perform I/O operations on various ports? Correct Answer Port Your Answer Port Question What is the another name of 'value at address' operator? Correct Answer indirection Your Answer indirection Question If 'return' statement is written without any value, which of the following is used for empty value? Correct Answer nothing, only 'return;' has to be written Your Answer nothing, only 'return;' has to be written Question C language has been developed at Correct Answer AT & T Bell Labs, USA Your Answer AT & T Bell Labs, USA Question Which of the following statements is decision making instruction? Correct Answer if Your Answer if Question Two statements are written within if block without any braces, if condition is true it will :Correct Answer execute the first statement in the block and the 2nd will get executed irrespictive of the condition is true or false Your Answer execute the first statement in the block and the 2nd will get executed irrespictive of the condition is true or false Question Which function is used to open a file? Correct Answer fopen Your Answer fopen Question When you pass an array as an argument to a function, what actually gets passed? Correct Answer Address of the first element of the array [base address] Your Answer Address of the first element of the array [base address] Question An array 'num' of integer type for 3 rows and 5 columns should be declared as Correct Answer int num[3][5] Your Answer int num[3][5] Question An _expression contains relational operators, assignement operators, and arithmatic operators. In the absence of parentheses, they will be evaluated in which of the following order? Correct Answer Arithmetic, relational, assignment Your Answer Arithmetic, relational, assignment Question How many times 'return' statement can be written? Correct Answer

any

Your Answer

once

Question When array elements are passed to a function with their values, it is called as:Correct Answer

Call by value

Your Answer

Call by value

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 analysis

Question

In declaration char name[20]; it can hold

Correct Answer

20 characters

Your Answer

20 characters

Question Any C function by default returns which value? Correct Answer

int

Your Answer

int

Question

A function definition is enclosed within :-

Correct Answer

{}

Your Answer

()

Question

Which is the ASCII value of End of file?

Correct Answer

26

Your Answer

26

Question

if an integer a = 2 and float b =6, the expression a + b evaluates to

Correct Answer

8.000000

Your Answer

8.000000

Question Which of the following is a unformatted console I/O function to display a string? Correct Answer

puts

Your Answer

putchar

Question The language used for modeling and documenting system is :Correct Answer

UML

Your Answer

UML

Question The simple logic for system specifications is provided by a languages named :Correct Answer

OCL [ Object Constraint Language ]

Your Answer

OOPL [ Object oriented Programming Language ]

Question An array is a collection of :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

Question

Which of the following is valid statement to declare a string?

Correct Answer char name[20]; Your Answer

char name[20];

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF