M3-R4 O-Level Jan-20 MCQ With Answers

M3-R4 O-Level  Jan-20 MCQ

M3-R4 : PROGRAMMING & PROBLEM SOLVING
THROUGH ‘C’ LANGUAGE

PART-1



1. 

Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein.                                                                                                                                               (1x10 )


To read about M3-R4 O-Level Jan-20 TRUE Or FALSE 

Click on the following link:


1.1  What is the following is invalid header file in C ?

                 (A) math.h         (B) mathio.h
                 (C) string.h        (D) ctype.h

      Answer: (B) mathio.h

      1.2  Which of the following is not a keyword  of 'C' ?

                (A) auto             (B) case
                (C) break           (D) function

      Answer: (D) function

      1.3  Strings are character arrays it always ends with ______.

                (A) \n                 (B) \t

                (C) \0                 (D) \1

      Answer: (C)\0

     1.4  Find an integer constant

                (A) 3.145
                (B) 34
                (C) "125"
                (D) None of the above

      Answer: (B)

     1.5  Standard ANSI C recognizes ______ number of keywords.

                (A) 16                 (B) 32
                (C) 64                 (D) 128

       Answer: (B)

     1.6  Which is the only function that all C program must contain?

                (A) start()             (B) system()

                (C) main()             (D) scanf()

        Answer: (C)

     1.7 Find output of the following program

            #include<stdio.h>
            #include<conio.h>
            void main()
              {
                char a[] = { 'A', 'B', 'C', 'D' };
                char* ppp = &a[0];
                *ppp++;
                printf("%c %c ", *++ppp, --*ppp);
              }

                    (A) C A                 (B) C B

                          (C) B C                 (D) B A

            Answer : (A)

      1.8  Find output of the following program
            #include <stdio.h>
            #include<conio.h>
            void main()
              {
                char ch;
                int i;
                ch = 'G';
                 i = ch-'A';
                printf("%d", i);
               }
                    (A) 5                     (B) 6
                    (C) 7                     (D) 8

            Answer: (B) 6

      1.9   How many times is a do while loop guaranteed to loop ?
                    (A) 0                     (B) Infinitely
                    (C) 1                     (D) Variable

        Answer: (C) 1

      1.10  Which of the following is not a proper storage class in 'C'?
                    (A) auto                 (B) dec
                    (C) static                (D) extern

        Answer: (B)

Popular posts from this blog

IGNOU Solved Assignment 2023-24 | BCS-012 Basic Mathematics BCA(I)012/Assignment/2023-24

MCS054 TEE June 2021 Q1(b) | Bisection Method

MCS-051 : ADVANCED INTERNET TECHNOLOGIES | 1. (a) Write a web application using JSP and JDBC that takes a bank account number as input and displays the account balance.