Q1. What is the basic difference between DVORAK and QWERTY pattern of keyboards? Explain in the context of current market usage.
Q2. Differentiate between compiler and interpreter
Q3. What do you understand by output device? Explain printer and printing mechanism of character by dot matrix.
Q4. With the help of a ‘C’ program define call by value and call by reference.
Q5. What are the different storage classes available in ‘c’? Explain any one of them.
Q6. What is operator? Define conditional operator with a C program.
Q7. Write a function that receives 5 integers and returns the sum and the average of these numbers. Call this function from main () and print the results in main ().
Q8. Write a c Program to count number of characters, number of blanks, and number of words.
Assignment B
Q1. A 5 digit positive integer is entered through the keyboard, write a function to calculate sum of digits of the 5 digit number
- a) Without using recursion b) Using recursion
Q2. Write a recursive function to obtain the first 25 numbers of a Fibonacci sequence. In a Fibonacci sequence the sum of two successive terms gives the third term. Following are the first few terms of the Fibonacci sequence
1 1 2 3 5 8 13 21 34 55 89…..
- Which of the following statements is true?
- C Library functions provide I/O facilities
- C inherent I/O facilities
- C doesn’t have I/O facilities
- Both (a) and (c)
- Header files in C contain
- Compiler commands
- Library functions
- Header information of C programs
- Operators for files
- Which pair of functions below are used for single character I/O.
- Getchar() and putchar()
- Scanf() and printf()
- Input() and output()
- None of these
- The printf() function retunes which value when an error occurs?
- Positive value
- Zero
- Negative value
- None of these
- Identify the wrong statement
- putchar(65)
- putchar(‘x’)
- putchar(“x”)
- putchar(‘\n’)
- The output of printf(“%u”, -1) is
- -1
- minimum int value
- maxiumint value
- PC Training Institute Ltd., An ISO-9001 Certified Organisation
|
- Error message
- An Ampersand before the name of a variable denotes
- Actual Value
- Variable Name
- ess
- Data Type
- Symbolic constants can be defined using
- # define
- const
- symbols
- None of these
- Null character is represented by
- \n
- \0
- \o
- \e
- Which header file is essential for using strcmp() function?
- h
- h
- h
- h
- malloc() function used in dynamic allocation is available in which header file?
- h
- h
- h
- h
- File manipulation functions in C are available in which header file?
- h
- h
- h
- h
- C supports how many basic looping constructs
- 2
- 3
- 4
- 6
- A statement differs from expression by terminating with a
|
- ;
- :
- NULL
- .
- What should be the expression return value for a do-while to terminate
- 1
- 0
- -1
- NULL
- Which among the following is a unconditional control structure
- do-while
- if-else
- goto
- for
- continue statement is used
- to go to the next iteration in a loop
- come out of a loop
- exit and return to the main function
- restarts iterations from beginning of loop
- Which operator in C is called a ternary operator
- .then
- ++
- ?:
- ()
- Which of the following header file is required for strcpy() function?
- h
- h
- h
- strcsspy()
- The meaning of conversion character for data input is
- Data item is a long integer
- Data item is an unsigned decimal integer
- Data item is a short integer
- None of the above
- The conversion characters for data input means that the data item is
- An unsigned decimal integer
- A short integer
- A hexadecimal integer
|
- A string followed by white space
- Which of the following is a key word is used for a storage class
- printf
- external
- auto
- scanf
- In the C language ‘a’ represents
- a digit
- an integer
- a character
- a word
- The number of the relational operators in the C language is
- Four
- Six
- Three
- One
- A compound statement is a group of statements included between a pair of
- double quote
- curly braces
- parenthesis
- a pair of /’s
- A Link is
- a compiler
- an active debugger
- a C interpreter
- a analyzing tool in C
- The continue command cannot be used with
- for
- switch
- do
- while
- In C, a Union is
- memory location
- memory store
- memory screen
- None of these
- When the main function is called, it is called with the arguments
|
- argc
- argv
- None of these
- both a & b
- A multidimensional array can be expressed in terms of
- array of pointers rather than as pointers to a group of contiguous array
- array without the group of contiguous array
- data type arrays
- None of these
- C allows arrays of greater than two dimensions, who will determined this
- programmer
- compiler
- parameter
- None of these
- A pointer to a pointer in a form of
- multiple indirection
- a chain of pointers
- both a and b
- None of these
- Pointers are of
- integer data type
- character data type
- unsigned integer data types
- None of these
- Maximum number of elements in the array declaration int a[5][8] is
- 28
- 32
- 35
- 40
- If the size of the array is less than the number of initializers then,
- Extra values are being ignored
- Generates an error message
- Size of Array is increased
- Size is neglected when values are given
- Array subscripts in C always start at
- -1
- 1
- 0
- Value provided by user
|
- A Structure
- can be read as a single entity
- cannot be read as a single entity
- can be displayed as a single entity
- has member variables that cannot be read individually
- Identify the invalid pointer arithmetic
- Addition of float value to a pointer
- Comparision of pointers that do not point to the element of the same array
- Subtracting an integer from a pointer
- Assigning the value 0 to a pointer variable
- Which is the correct way to declare a pointer?
- int_ptr;
- int *ptr;
- *intptr;
- None of these.
- If you want to exchange two rows in a two dimensional array, the fastest way is to:
- Exchange the elements of the 2rows
- Exchange the address of each element in the two row]
- Silence the address of the rows in an array of pointer and exchange the pointer
- None of these.
We Also Provide SYNOPSIS AND PROJECT.
Contact www.kimsharma.co.in for best and lowest cost solution or
Email: solvedstudymaterial@gmail.com
Call: +91 82907-72200 (Call/WhatsApp) or +91 88003-52777 (WhatsApp Only)
may i know the info of solved assignment of M.B.A. 2nd Sem