Principles of Programming: Unit-1 Overview of C Language
16 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

When was the C language initially developed?

  • 1972 (correct)
  • 2000
  • 1990
  • 1985

What was the main purpose for developing the C language?

  • System programming language for UNIX operating system (correct)
  • Artificial intelligence
  • Mobile application development
  • Web development

Which feature of the C language makes it suitable for system programming like operating system or compiler development?

  • Complex Syntax
  • Slow Speed
  • Limited Portability
  • Low-level Memory Access (correct)

What part of the C program consists of the description of the program, programmer's name, and creation date?

<p>Documentation (D)</p> Signup and view all the answers

What does the preprocessor directive #define allow us to do in a C program?

<p>Use constants in our code (B)</p> Signup and view all the answers

From which function does the execution start for every C program?

<p>main() function (A)</p> Signup and view all the answers

Which type of characters does the C programming language support?

<p>Alphabets, digits, and special symbols (B)</p> Signup and view all the answers

What is the total number of lowercase alphabets supported by the C programming language?

<p>26 (C)</p> Signup and view all the answers

What is the purpose of the main() function in C programs?

<p>To indicate the beginning of program execution (B)</p> Signup and view all the answers

What is the purpose of the subprograms in the C programming language?

<p>To contain user-defined functions and inbuilt functions used in the main() function (B)</p> Signup and view all the answers

What does the escape sequence help in managing in C programming?

<p>Programs (C)</p> Signup and view all the answers

What is the total number of digits supported by the C programming language?

<p>10 (B)</p> Signup and view all the answers

What is the character set of the C programming language?

<p>A set of characters used to construct words, statements, etc. (C)</p> Signup and view all the answers

What is the primary purpose of the Global Declaration section in C programs?

<p>To declare function definitions accessible by all subprograms (C)</p> Signup and view all the answers

What is the purpose of the getch() function in the given example?

<p>To pause program execution until a key is pressed (D)</p> Signup and view all the answers

What does the #define BORN 2000 statement do in the given example?

<p>Defines a constant named BORN with a value of 2000 (D)</p> Signup and view all the answers

More Like This

C Programming Language Overview
3 questions
C Programming Language Basics
10 questions
Database Management Systems: PL SQL Part 1
5 questions
Introduction to C Language
10 questions

Introduction to C Language

PositiveAltoSaxophone7947 avatar
PositiveAltoSaxophone7947
Use Quizgecko on...
Browser
Browser