C Programming Quiz

C Programming Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

DGBL Hard version

DGBL Hard version

6th Grade - Professional Development

10 Qs

HERRAMIENTAS GOOGLE1 (1.2)

HERRAMIENTAS GOOGLE1 (1.2)

Professional Development

15 Qs

Web Engineering Quiz 4

Web Engineering Quiz 4

Professional Development

10 Qs

Ciber Kill Chain

Ciber Kill Chain

Professional Development

10 Qs

1 - Introducing SCRUM in SAFe

1 - Introducing SCRUM in SAFe

Professional Development

10 Qs

BIS - Khái niệm cơ bản

BIS - Khái niệm cơ bản

Professional Development

8 Qs

Introduction

Introduction

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

Dr. SRET

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement while (0 == 0) { }

It has syntax error as there are no statements within braces {}

It will run forever

It compares 0 with 0 and since they are equal it will exit the loop immediately

It has syntax error as the same number is being compared with itself

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the below statements about C programming language; 1) main() function should always be the first function present in a C program file 2) all the elements of an union share their memory location 3) A void pointer can hold address of any type and can be typecasted to any type 4) A static variable hold random junk value if it is not initialised Which of the above are correct statements?

2,3

1,2

1,2,3

1,2,3,4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is used during memory deallocation in C?

remove(p);

delete(p);

free(p);

terminate(p);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output of following code: main() { int a=b=c=d=10; printf("%d,%d,%d,%d",a,b,c,d); }

Error

10,10,10,10

Garbage Value,Garbage Value,Garbage Value,10

Garbage Value,Garbage Value,Garbage Value,Garbage Value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times the below loop will be executed? #include int main() { int i; for(i=0;i<5;i++) printf("Hello\n"); }

5

1

0

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output of following code: main() { int a=10,x; x= a- + ++a; printf("%d",x); }

A) 19

B) 20

C) 22

D) 23

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following does not require to include math.h header file?

A) pow()

B) rand()

C)sqrt()

D) sinh()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?