C Programming Fundamentals

C programming language basics including syntax, functions, headers, and compilation

21 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The C language was developed in year

  1. 1972
  2. 1983
  3. 1975
  4. 1956
Question 2 Multiple Choice (Single Answer)

C program should be written in ___________case.

  1. lower
  2. title
  3. upper
  4. none of these
Question 3 Multiple Choice (Single Answer)

How can we convert the C programs into machine language?

  1. Interpreter
  2. An assembler
  3. An operating system
  4. A compiler
Question 4 Multiple Choice (Single Answer)

The C Language has been developed by

  1. Charles Babbage
  2. <span style="FONT-FAMILY:" new="ar-sa=" lang="EN-US">Bjarne Stroupstrup
  3. Dennis M. Ritchie
  4. Ken Thompson
Question 5 Multiple Choice (Single Answer)

How can we represent the Null string?

  1. 0
  2. “ “
  3. ;
  4. { }
Question 6 Multiple Choice (Single Answer)

“The execution of function begins at the opening braces of the function and ends at the closing braces” what do you think about the statement?

  1. True statement
  2. False statement
  3. Partially true
  4. Invalid statement
Question 7 Multiple Choice (Single Answer)

How can we start C ?

  1. Click start → Program → MS-Office → MS-DOS
  2. Click start → Program → MS-DOS
  3. Click start → Program → Accessories → Window Explorer
  4. Click start → Program → My Document
Question 8 Multiple Choice (Single Answer)

What is the full form of conio?

  1. Character Integrated Oriented
  2. Character Input-Output
  3. Console Input Output
  4. Console Indirect Output
Question 9 Multiple Choice (Single Answer)

What is the full form of stdio?

  1. Standard Input Output
  2. Stadio Input Output
  3. System Input Output
  4. Standard Integrated Oriented
Question 10 Multiple Choice (Single Answer)

Which combination of the shortcut keys is used in C language to see the output of program?

  1. Ctrl+O
  2. F5
  3. Alt+F5
  4. Alt+F9
Question 11 Multiple Choice (Single Answer)

Which instruction is not ended with a semicolon (;)?

  1. clrscr( )
  2. go to( )
  3. define & include
  4. break ( )
Question 12 Multiple Choice (Single Answer)

Which sign of compiler directives must appear in the first column of the line?

  1. ;
  2. ( )
  3. #
  4. { }
Question 13 Multiple Choice (Single Answer)

Which symbol should be used when comment inserts in the program?

  1. #
  2. /* & *
  3. ( )
  4. < >
Question 14 Multiple Choice (Single Answer)

What do you mean by Scanf function in the C language?

  1. Input function
  2. Output function
  3. Scan the document
  4. Print the program
Question 15 Multiple Choice (Single Answer)

What do you mean by Printf function in C language?

  1. Print the program
  2. Input function
  3. Output function
  4. Scan the document
Question 16 Multiple Choice (Single Answer)

Which of the following escape characters means back space?

  1. b
  2. “\”
  3. “” ”
  4. “'“
Question 17 Multiple Choice (Single Answer)

Which combination of shortcut keys is used to compile the program in C language?

  1. Alt+F5
  2. Alt+F9
  3. F2
  4. Ctrl+F9
Question 18 Multiple Choice (Single Answer)

Which of the following is the group of characters, digits and symbols enclosed in quotation marks?

  1. String
  2. Character constant
  3. Character set
  4. Identifiers
Question 19 Multiple Choice (Single Answer)

How can we define the String?

  1. char ch [5]
  2. char string_name [size]
  3. char string_name [size]
  4. data_type variable_name
Question 20 Multiple Choice (Single Answer)

Which of the following header files is not used in C language?

  1. stdio.h
  2. conio.h
  3. math.h
  4. iostream.h
Question 21 Multiple Choice (Single Answer)

Which of the following languages is used for engineering and scientific applications?

  1. COBOL
  2. PASCAL
  3. FORTRON
  4. C++