c-prog quiz

c-prog quiz

Professional Development

13 Qs

quiz-placeholder

Similar activities

C Language Basic Quiz

C Language Basic Quiz

7th Grade - Professional Development

10 Qs

C Test Operators Test 02

C Test Operators Test 02

Professional Development

14 Qs

c program -basic

c program -basic

Professional Development

10 Qs

Day 2 C Programming quiz

Day 2 C Programming quiz

Professional Development

10 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

Evaluación RA 1.1

Evaluación RA 1.1

KG - Professional Development

12 Qs

Demo C programming

Demo C programming

Professional Development

10 Qs

MindSpace Computers C Test-5

MindSpace Computers C Test-5

Professional Development

15 Qs

c-prog quiz

c-prog quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Selvauma C

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

1. Which of the following is the correct syntax to include a header file in a C program?

#include<file>

#include file

include<file>

#include "file"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main()

{

int x = 10,

y = 20;

printf("%d", x * y);

return 0;

}

10

20

200

Compilation error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the return 0; statement in the main() function?

It stops the execution of the program.

It returns control to the operating system.

It specifies that the program executed successfully.

It prints 0 on the screen.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value of a variable through a pointer?

*

+

%

()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid keyword in C?

return

goto

class

switch

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main() {

int a = 5, b = 2;

printf("%d", a / b);

return 0;

}

2

3

2.5

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a single-line comment in C?

/* Comment */

// Comment

-- Comment

# Comment

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?