SEM 1 C lang ASSIGNMENT

SEM 1 C lang ASSIGNMENT

University

10 Qs

quiz-placeholder

Similar activities

fundamento de C++ test1

fundamento de C++ test1

University

12 Qs

Induction

Induction

8th Grade - University

15 Qs

Properties of Visible Light

Properties of Visible Light

8th Grade - University

15 Qs

ESRT

ESRT

9th Grade - University

15 Qs

5.8

5.8

5th Grade - University

15 Qs

Life Science Animal Behavior

Life Science Animal Behavior

5th Grade - University

15 Qs

Vet Science Breeds

Vet Science Breeds

12th Grade - University

15 Qs

Mohamed Nizar - MPMC - II CSE - C

Mohamed Nizar - MPMC - II CSE - C

University

12 Qs

SEM 1 C lang ASSIGNMENT

SEM 1 C lang ASSIGNMENT

Assessment

Quiz

Science

University

Practice Problem

Hard

Created by

SOFTWARE GUCPC

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

Which of the following is the correct way to declare an integer variable in C?

int var;

integer var;

var int;

declare int var;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

A) 5

B) 6

C) Compiler error

D) Garbage value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which of the following is NOT a valid loop structure in C?

A) for

B) while

C) do-while

D) foreach

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of int data type in most 32-bit systems?

A) 1 byte

B) 2 bytes

C) 4 bytes

D) 8 bytes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following pointer expression mean?

int *ptr;

ptr is an integer

ptr is a pointer to an integer

ptr is a function returning an integer

ptr is an array of integers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which operator is used to access the value at the address stored by a pointer?

A) &

B) *

C) ->

D) %

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code?

A) 10

B) 5

C) 1

D) 0

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?