Module01_C_M_M&A

Module01_C_M_M&A

University

15 Qs

quiz-placeholder

Similar activities

TRICODE CHALLENGE ROUND 1

TRICODE CHALLENGE ROUND 1

University

15 Qs

Quiz on Embedded Systems

Quiz on Embedded Systems

University

20 Qs

Internal Lab Quiz-1 CSECS

Internal Lab Quiz-1 CSECS

University

10 Qs

Introduction to C++

Introduction to C++

University

20 Qs

Week10: Analog to Digital Conversion and LCD

Week10: Analog to Digital Conversion and LCD

University

10 Qs

Code Blitz 40

Code Blitz 40

University

15 Qs

SESSIONAL EXAM(Programmin Lab)

SESSIONAL EXAM(Programmin Lab)

University

15 Qs

C Programming Day-10

C Programming Day-10

University

10 Qs

Module01_C_M_M&A

Module01_C_M_M&A

Assessment

Quiz

Engineering

University

Hard

Created by

Nafees Ahmed Khan

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C02:2: From given option which one is Library that is used in c programming?

include

stdio

printf

return

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

CO1:2: In the following program which variable is global variable?

#include <stdio.h>

int result = 0;

int main() {

int num1, num2;

printf("Enter first number: ");

scanf("%d", &num1);

printf("Enter second number: ");

scanf("%d", &num2);

result = num1 + num2;

printf("Sum: %d\n", result);

return 0;

}

num1

num2

result

num1 and num2

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

CO1:1: Identify from the given options which are the correct identifiers?

return

Age

_cars

1apple

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

CO2:2: To store a string "hello world", which data type is used.

int

float

char

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

CO2:2: From the given options, which one is correct data type for defining 10.75.

int data=10.75

float data=10.75

char data=10.75

none

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

CO1:1: what are the correct way to define constant in a program.

#define MAX 100

const float pi = 3.14159

const pi = 3.14159

#define MAX

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

CO1:1: From given option, which function is used to display single character as output.

getchar( )

putchar( )

gets( )

puts( )

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?