Introduction to Programming CA413 Quiz
16 Questions
0 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

Who developed C language?

  • Rasmus Lerdorf
  • James Gosling
  • Dennis Ritchie (correct)
  • Steve Jobs
  • What is an example of repetition in C?

  • for
  • while
  • do...while
  • All of the above (correct)
  • The C-preprocessors are specified with which symbol?

  • !
  • # (correct)
  • @
  • $
  • The switch expression can be which types?

    <p>Integer, character, or float</p> Signup and view all the answers

    Which operator is used to access the value pointed to by a pointer?

    <ul> <li></li> </ul> Signup and view all the answers

    A function which calls itself is called a ___ function.

    <p>Recursive Function</p> Signup and view all the answers

    Which statement executes at least one time in C?

    <p>do...while</p> Signup and view all the answers

    What will evaluate the result in integer only?

    <p>None of the given</p> Signup and view all the answers

    What will be the output of the given C code when i is set to 5?

    <p>fivesixseven</p> Signup and view all the answers

    Which of the following is not a standard header file in C?

    <p>conio.h</p> Signup and view all the answers

    What is the correct extension for a C header file?

    <p>.h</p> Signup and view all the answers

    Which statement about the C programming language is true?

    <p>The execution of a program begins with main().</p> Signup and view all the answers

    What are the elements in the array represented by the following code: int arr = {5};?

    <p>5,0,0,0,0</p> Signup and view all the answers

    How many keywords are there in the C programming language?

    <p>32</p> Signup and view all the answers

    What process is used to compile a C source file?

    <p>Compiler</p> Signup and view all the answers

    What is the purpose of using a flowchart in programming?

    <p>To visually represent algorithms</p> Signup and view all the answers

    Study Notes

    Introduction to Programming [CA413]

    • Exam Date and Time: January 24, 2024 (1:15 PM - 4:30 PM)
    • Exam Duration: 195 minutes
    • Section 1 Duration: 40 minutes
    • Total Marks: 70

    Section I

    • Question 1: Who developed C language?

      • Dennis Ritchie
    • Question 2: All keywords in C are in what case?

      • Lower Case letters
    • Question 3: What is an example of repetition in C?

      • for, while, do...while
    • Question 4: The C-preprocessors are specified with what symbol?

      • #
    • Question 5: scanf() is a predefined function in which header file?

      • stdio.h
    • Question 6: What will be the final value of x in the following C code?

      #include <stdio.h>
      void main()
      {
          int x = 5*9/3 + 9;
          printf("%d",x);
      }
      
      • 24
    • Question 7: The switch expression can be integer, character or float only.

      • False
    • Question 8: Which operator is used to access the value pointed to by a pointer?

      • ->
    • Question 9: What symbol is used to represent the process in a flowchart?

      • Parallelogram
    • Question 10: Which function evaluates the result in integer only?

      • strcmp()
    • Question 11: A function that calls itself is called a

      • Recursive Function
    • Question 12: Which statement executes at least once?

      • do...while
    • Question 13: What is the output of the given switch code?

      • fivesixsevendefault
    • Question 14: Which of the following are not standard header files in C?

    • conio.h

    • Question 15: .c is the extension for the C program source file.

      • True
    • Question 16: The extension of header files in C

      • .h
    • Question 17: The execution of a program begins with main().

      • True
    • Question 18: What are the elements present in the array?

      int arr[5] = {5};
      
      • 5, 0, 0, 0, 0
    • Question 19: How many keywords are there in C language?

      • 32
    • Question 20: The C source file is processed by the

      • Compiler

    Section II

    • Detailed questions and instructions for the rest of the exam.
    • Includes programming tasks related to flowcharts, switch statements, loops, structure of C programs, file types, identifiers, and numerical computation using arrays.

    Section III

    • Detailed questions and instructions for further programming tasks.
    • Including array declarations, function calls, operators and programming logic for specific calculations.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Prepare for the Introduction to Programming CA413 exam with this comprehensive quiz. Covering essential concepts of the C programming language, it includes questions on keywords, preprocessor directives, and basic syntax. Test your knowledge and boost your confidence ahead of the exam on January 24, 2024.

    More Like This

    Use Quizgecko on...
    Browser
    Browser