Unit 1 - Structure of C

Unit 1 - Structure of C

University

8 Qs

quiz-placeholder

Similar activities

Introduction to Java

Introduction to Java

University

10 Qs

Selection and Loop structure

Selection and Loop structure

University

10 Qs

Selection Control Structure  Quiz

Selection Control Structure Quiz

6th Grade - University

10 Qs

Module-3

Module-3

University

10 Qs

ppl

ppl

University

8 Qs

General Semantics of Calls and Returns

General Semantics of Calls and Returns

University

12 Qs

Computing Software Development Process

Computing Software Development Process

8th Grade - University

10 Qs

HISTORY OF COMPUTER AND PROGRAMMING LANGUAGES

HISTORY OF COMPUTER AND PROGRAMMING LANGUAGES

University

12 Qs

Unit 1 - Structure of C

Unit 1 - Structure of C

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the entry point of a C program?

start()

begin()

init()

main()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #include directive in a C program?

To declare variables

To define functions

To include header files

To start the execution of the program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section of a C program contains global variable declarations?

Preprocessor directive section

Definition section

Global declaration section

Main section

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid section of a C program?

Documentation section

Definition section

Compilation section

Subprogram section

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The return 0; statement at the end of the main() function signifies:

Program failed

Program returned nothing

Program ended successfully

Program entered an infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section includes user-defined functions?

Preprocessor section

Subprogram section

Main section

Header section

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Link Section in a C program?

To write the main logic of the program

To declare variables

To include header files and link external libraries

To define user-defined functions

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you forget to include <stdio.h> and use printf()?

The program will run normally

The compiler will throw an error

The program will crash during execution

The function will work with a warning only