0% found this document useful (0 votes)
10 views8 pages

MCQs_Data_Basics

The document contains a series of questions and answers related to the C programming language, covering its history, features, and usage. Key topics include the origin of C, its development at AT&T Bell Laboratory, and its procedural nature. Additionally, it discusses common errors, file handling, and the role of compilers in programming.

Uploaded by

mcno00000000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views8 pages

MCQs_Data_Basics

The document contains a series of questions and answers related to the C programming language, covering its history, features, and usage. Key topics include the origin of C, its development at AT&T Bell Laboratory, and its procedural nature. Additionally, it discusses common errors, file handling, and the role of compilers in programming.

Uploaded by

mcno00000000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Statement:

Who is father of C Language?

A. Bjarne Stroustrup

B. James A. Gosling

C. Dennis Ritchie

D. Dr. E.F. Codd

Answer: C

Statement:

C Language was developed at?

A. AT & T Bell Laboratory

B. MIT University

C. Harvard University

D. Stanford Lab

Answer: A

Statement:

Many features of C were derived from which language?

A. PASCAL

B. B

C. BASIC

D. FORTRAN

Answer: B

Statement:

What is C language?

A. C language is a structure/procedure oriented


B. C language is a middle level programming language

C. C language was invented for implementing UNIX operating system

D. All of the above

Answer: D

Statement:

First version of C Programming language is ____.

A. K&R

B. C89

C. ANSI

D. R&K

Answer: A

Statement:

C was initially used for

A. General purpose

B. System development work

C. Data processing

D. None of these

Answer: B

Statement:

C programming language is

A. Procedural language

B. Object Oriented language

C. Scripting languages

D. None of these
Answer: A

Statement:

Which Committee standardize C Programming Language?

A. IEEE

B. ISO

C. IEC

D. ANSI

Answer: D

Statement:

Which year C language is developed?

A. 1970

B. 1971

C. 1972

D. 1973

Answer: C

Statement:

Which of these is not an example for IDE in C?

A. Turbo

B. Pycharm

C. Code::Blocks

D. Borland

Answer: B

Statement:
C can be used on?

A. Only MS-Dos operating System

B. Only Linux operating system

C. Only Windows operating system

D. All of the above

Answer: D

Statement:

Which is not a character Of C?

A. $

B. ^

C. -

D. |

Answer: D

Statement:

Identify the wrong Statement?

A. #define /* symbolic constant */ Max 100

B. int /*declaration*/ a,b;

C. char c1,c2;

D. #define MAX 25;

Answer: A

Statement:

Identify the wrong statement?

A. # define is a preprocessor facility.

B. # define aids in modifying a constant value throughout the program.


C. # define uses a statement terminator.

D. # define improves the readability of the program.

Answer: C

Statement:

Where does the execution of every C program starts?

A. Every C program starts in the main () function.

B. Every C program starts in the begin ( ) function.

C. Every C program starts in the initialize ( ) function.

D. Every C program starts in the start ( ) function.

Answer: A

Statement:

A program which translates a high level language program into a machine language program is

called

A. Compiler

B. Interpreter

C. Both A and B

D. None of the above

Answer: C

Statement:

Consider the following C declaration.

`int x[10], y,z;`

What kind of error does following statement contain? `z == x + y;`

A. Syntax error

B. Semantic error
C. Logical error

D. All of the above

Answer: B

Statement:

Input/output function prototypes and macros are defined in which header file?

A. conio.h

B. stdlib.h

C. stdio.h

D. dos.h

Answer: C

Statement:

Which of the following file extensions are accepted with #include?

A. .h

B. .in

C. .com

D. .exe

Answer: A

Statement:

What is the output of this C code?

```c

#include <stdio.h>

#include "printf"

void main() { printf("hello"); }```

A. hello
B. Error

C. Depends on compiler

D. Varies

Answer: B

Statement:

What is the output of this C code?

```c

#include (stdio.h)

void main() { printf("hello"); }```

A. hello

B. Nothing

C. Compile time error

D. Depends on compiler

Answer: C

Statement:

If the file name is enclosed in angle brackets

A. The preprocessor treats it as a user-defined file

B. The preprocessor treats it as a system-defined file

C. The preprocessor treats it as both

D. None of the mentioned

Answer: B

Statement:

Which of the following is a programming language?

A. Lotus
B. Pascal

C. MS-Excel

D. Netscape

Answer: B

Statement:

What is a compiler?

A. A compiler does conversion line by line as the program is run

B. A compiler converts whole of a higher level program code into machine code in 1 step

C. A compiler is a general purpose language providing very efficiently execution

D. None of the above

Answer: B

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy