Phone:+91-88823 09876

amity solved assignment for c programming

1 .           What is the basic difference between DVORAK and QWERTY pattern of keyboards? Explain in the context of current market usage.  

2 .           Differentiate between compiler and interpreter

3 .           What do you understand by output device? Explain printer and printing mechanism of character by dot matrix.

4 .           With the help of a ‘C’ program define call by value and call by reference.              

5 .           What are the different storage classes available in ‘c’? Explain any one of them.               

6 .           What is operator? Define conditional operator with a C program.

7 .           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 ().    

8 .          

Write a c Program to count number of characters, number of blanks, and number of words.

 

Assignment B

1.           

 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

 

 

Select file to upload answer sheet :  Choose File

File type only .xls, .doc. less than 1 MB.

NOTE :Please press 'Save and Continue' button to save this file

 

Save and Continue

2.              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…..

 

Assignment C

 

Question No.  1

Marks - 10


 Which of the following statements is true? 

 
 

 

 

Options

 
   

C Library functions provide I/O facilities

 

C inherent I/O facilities

 

C doesn’t have I/O facilities

 

Both (a) and (c)

 

Question No.  2

Marks - 10


 Header files in C contain 

 
 

 

 

Options

 
   

Compiler commands

 

Library functions

 

Header information of C programs

 

Operators for files

 

Question No.  3

Marks - 10


Which pair of functions below are used for single character I/O. 

 
 

 

 

Options

 
   

Getchar() and putchar()

 

Scanf() and printf()

 

Input() and output()

 

None of these

 

Question No.  4

Marks - 10


 The printf() function retunes which value when an error occurs? 

 
 

 

 

Options

 
   

Positive value

 

Zero

 

Negative value

 

None of these

 

Question No.  5

Marks - 10


 Identify the wrong statement 

 
 

 

 

Options

 
   

putchar(65)

 

putchar('x')

 

putchar("x")

 

putchar('\n')

 

Question No.  6

Marks - 10


The output of printf("%u", -1) is 

 
 

 

 

Options

 
   

-1

 

minimum int value

 

maxium int value

 

Error message

 

Question No.  7

Marks - 10


An Ampersand before the name of a variable denotes 

 
 

 

 

Options

 
   

Actual Value

 

Variable Name

 

Address

 

Data Type

 

Question No.  8

Marks - 10


 Symbolic constants can be defined using 

 
 

 

 

Options

 
   

# define

 

const

 

symbols

 

None of these

 

Question No.  9

Marks - 10


Null character is represented by 

 
 

 

 

Options

 
   

\n

 

\0

 

\o

 

\e

 

Question No.  10

Marks - 10


Which header file is essential for using strcmp() function? 

 
 

 

 

Options

 
   

string.h

 

strings.h

 

text.h

 

strcmp.h

 

Question No.  11

Marks - 10


 malloc() function used in dynamic allocation is available in which header file? 

 
 

 

 

Options

 
   

stdio.h

 

stdlib.h

 

conio.h

 

mem.h

 

Question No.  12

Marks - 10


File manipulation functions in C are available in which header file? 

 
 

 

 

Options

 
   

streams.h

 

stdio.h

 

stdlib.h

 

files.h

 

Question No.  13

Marks - 10


C supports how many basic looping constructs 

 
 

 

 

Options

 
   

2

 

3

 

4

 

6

 

Question No.  14

Marks - 10


A statement differs from expression by terminating with a  

 

 

Options

 
   

;

 

:

 

NULL

 

.

 

Question No.  15

Marks - 10


 What should be the expression return value for a do-while to terminate 

 
 

 

 

Options

 
   

1

 

0

 

-1

 

NULL

 

Question No.  16

Marks - 10


 Which among the following is a unconditional control structure 

 
 

 

 

Options

 
   

do-while

 

if-else

 

goto

 

for

 

Question No.  17

Marks - 10


continue statement is used 

 
 

 

 

Options

 
   

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

 

Question No.  18

Marks - 10


Which operator in C is called a ternary operator 

 
 

 

 

Options

 
   

if..then

 

++

 

?:

 

()

 
 

 

Question No.  19

Marks - 10


 Which of the following header file is required for strcpy() function? 

 
 

 

 

Options

 
   

string.h

 

strings.h

 

files.h

 

strcsspy()

 

Question No.  20

Marks - 10


The meaning of conversion character for data input is 

 
 

 

 

Options

 
   

Data item is a long integer

 

Data item is an unsigned decimal integer

 

Data item is a short integer

 

None of the above

 

Question No.  21

Marks - 10


The conversion characters for data input means that the data item is  

 

 

Options

 
   

An unsigned decimal integer

 

A short integer

 

A hexadecimal integer

 

A string followed by white space

 

Question No.  22

Marks - 10


  Which of the following is a key word is used for a storage class  

 

 

Options

 
   

printf

 

external

 

auto

 

scanf

 

Question No.  23

Marks - 10


 In the C language 'a’ represents 

 
 

 

 

Options

 
   

a digit

 

an integer

 

a character

 

a word

 

Question No.  24

Marks - 10


The number of the relational operators in the C language is 

 
 

 

 

Options

 
   

Four

 

Six

 

Three

 

One

 

Question No.  25

Marks - 10


A compound statement is a group of statements included between a pair of  

 

 

Options

 
   

double quote

 

curly braces

 

parenthesis

 

a pair of /’s

 

Question No.  26

Marks - 10


A Link is 

 
 

 

 

Options

 
   

a compiler

 

an active debugger

 

a C interpreter

 

a analyzing tool in C

 

Question No.  27

Marks - 10


The continue command cannot be used with  

 

 

Options

 
   

for

 

switch

 

do

 

while

 

Question No.  28

Marks - 10


 In C, a Union is 

 
 

 

 

Options

 
   

memory location

 

memory store

 

memory screen

 

None of these

 

Question No.  29

Marks - 10


When the main function is called, it is called with the arguments 

 
 

 

 

Options

 
   

argc

 

argv

 

None of these

 

both a & b

 

Question No.  30

Marks - 10


A multidimensional array can be expressed in terms of  

 

 

Options

 
   

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

 

Question No.  31

Marks - 10


C allows arrays of greater than two dimensions, who will determined this 

 
 

 

 

Options

 
   

programmer

 

compiler

 

parameter

 

None of these

 

Question No.  32

Marks - 10


  A pointer to a pointer in a form of 

 
 

 

 

Options

 
   

multiple indirection

 

a chain of pointers

 

both a and b

 

None of these

 

Question No.  33

Marks - 10


Pointers are of 

 
 

 

 

Options

 
   

integer data type

 

character data type

 

unsigned integer data types

 

None of these

 

Question No.  34

Marks - 10


Maximum number of elements in the array declaration int a[5][8] is 

 
 

 

 

Options

 
   

28

 

32

 

35

 

40

 

Question No.  35

Marks - 10


 If the size of the array is less than the number of initializers then, 

 
 

 

 

Options

 
   

Extra values are being ignored

 

Generates an error message

 

Size of Array is increased

 

Size is neglected when values are given

 

Question No.  36

Marks - 10


Array subscripts in C always start at 

 
 

 

 

Options

 
   

-1

 

1

 

0

 

Value provided by user

 

Question No.  37

Marks - 10


 A Structure 

 
 

 

 

Options

 
   

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

 

Question No.  38

Marks - 10


Identify the invalid pointer arithmetic  

 

 

Options

 
   

Addition of float value to a pointer

 

Comparison 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

 

Question No.  39

Marks - 10


Which is the correct way to declare a pointer?

 

 

Options

 
   

int_ptr;

 

int *ptr;

 

*int ptr;

 

None of these.

 

Question No.  40

Marks - 10


 If you want to exchange two rows in a two dimensional array, the fastest way is to:

 

 

Options

 
   

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.

 

 

Amity solved assignment.

 

Dear Student,

 

Solved assignment which is always available with us. We ensure you that the answer quality would be the best and you will get up to 90% to 100% marks in the assignments purchased from us. We have an expert on every subject working with us. The subject matter experts are highly qualified and deliver their best for you over and over again.

Please have a look at the price list mentioned below and send us a reply on this e-mail to let us know which assignment you want from us.

  • Ready to use General Assignments – This assignment is ready to use assignment for every student. (The content of this assignment is the same for every student. You may risk getting your marks deducted by the university due to plagiarism.) We will provide you with all Sections of assignment fully solved: Section A, Section B, Section C.
  • Customized, personal and exclusive Assignments- This assignment is personalized and customized just for you. The answers of this assignment would not be shared with any other student. The content of this assignment would be unique and we will delete it from our database after sending it to you exclusively. (This assignment would have 0% plagiarism). We will provide you with all Sections of assignment fully solved: Section A, Section B, Section C.
  • Answers with online typing and filling assistance Assignments – This assignment is done by our staff members on your behalf. We will do it online by using your Amity user id and password. The answers we provide would be unique and will not be shared with any other student. (This assignment would also have 0% plagiarism) .We will provide you with all Sections of assignment fully solved: Section A, Section B, Section C. Please NOTE:  This assignment is same as Customized, personal and exclusive Assignments, in addition we provide you here online typing and filling by just an additional charge of Rs 300 only as typing charge.

Please note that you have to pay us in advance. All payment should be made in INR. As soon as we receive your payment, we will send you’re ready to use General Assignment within 10 minutes only. If you have opted for Customized, personal and exclusive Assignment, we will send the assignment within 5 hours of receiving your payment. If you have opted for Answers with online typing and filling assistance Assignment, we will send your assignment within 24 hours of receiving the payment. Customized , personal and exclusive Assignments and Answers with online typing and filling assistance Assignments  submission takes more time because we customize each and every word of the assignment just for you. So we request you to be patient.

 Our process

 

  • Email or call us for which type of assignment you need: Ready to use General Assignments OR Customized, personal and exclusive Assignments OR Answers with online typing and filling assistance Assignments
  • We will reply you with price list of assignment
  • After you have made the payment please email us your payment details with Assignment Name and Type Preference at solvezone@gmail.com. We will send your assignment ASAP.

Pay Online

Now you can also make the payment online by the below mentioned link. We accept payments through Credit Card, Debit Card and Net Banking too.

http://solvezone.in/payments

Pay Offline

You can also pay us via NEFT / RTGS by visiting the nearest branch of your bank.

You can also deposit Cash by visiting the nearest branch of ICICI Bank.

 

  M.No. 08882309876 M.No. 08010058890 E-mail solvezone@gmail.com

 

  1. Please email us your details with your contact number so that we can contact you.
  2. Now you can  also enquire with our instant enquiry section at the bottom of the page
University:  AMITY Year:  2015
Subject: 
c programming
Course: 
MBA