Question: COMP 1411 FC-Computer Programming Name: Quiz # 5 A Note: Write neat and clean, use pen to answer Total Marks: 15 all the questions, use
COMP 1411 FC-Computer Programming Name: Quiz # 5 A Note: Write neat and clean, use pen to answer Total Marks: 15 all the questions, use back pages as extra sheet if needed. ID Time: 25 mins Q1) Solve the followings. (11 Marks) /Q1 A) How many elements color has? // 1 mark char colort) "blue" //Answer //Q1 B) Produce the output by printf. 1/3 marks char *s1 = "Happy Cake Year"; char *s2 "Happy Cake Year"; char *s3 = "Happy Holidays", s2) . %d ", strcmp(s1, s2)); printf("strcmp(s1, printf("strcmp(s1, s3) Xd , stremp(s1, s3)); printf("strcmp(th-s1).%dinistrcmp(s3, s1)); //output //Q1 c) Produce the output by printf. //2 marks print f("isspace('\ .) "No"); isspace(' ') isspace(.%") "Yes" ? "Yes" says %s ", ; says %s ", ? : "No"); printf("isspace("X%") //Output Page 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
