CUET Computer Science MCQs Chapter 6 Understanding Data

Multiple Choice Questions (MCQs) for CUET Computer Science: Chapter 06 Understanding Data

Review structured MCQ sets for CUET Computer Science Chapter 06 Understanding Data. Built according to official CUET guidelines, these downloadable questions support daily revision and core concept reinforcement.

Practice Chapter 06 Understanding Data MCQs for CUET Computer Science

Access the complete set of multiple-choice questions for Chapter 06 Understanding Data below. This focused format allows students to isolate specific topics for thorough review and uninterrupted practice alongside official CUET textbooks.

MCQ Questions CUET C Data Types

Question. Predict the output of following program. Assume that the numbers are stored in 2\'s complement form.
#include<stdio.h>
int main()
{
unsigned int x = -1;
int y = ~0;
if (x == y)
printf(\"same\");
else
printf(\"not same\");
return 0;
}
a) same
b) not same

Answer : A

Question. Predict the output of following C program
#include <stdio.h>
int main()
{
char a = 012;
printf(\"%d\", a);
return 0;
}
a) Compiler Error
b) 12
c) 10
d) Empty

Answer : C

Question. Output of following program? 
#include<stdio.h>
int main()
{
float x = 0.1;
if ( x == 0.1 )
printf(\"IF\");
else if (x == 0.1f)
printf(\"ELSE IF\");
else
printf(\"ELSE\");
}
a) ELSE IF
b) IF
c) ELSE

Answer : A

Question. In a C program, following variables are defined:
float x = 2.17;
double y = 2.17;
long double z = 2.17;
Which of the following is correct way for printing these variables via printf.
a) printf("%f %lf %Lf",x,y,z);
b) printf(“%f %f %f”,x,y,z);
c) printf("%f %ff %fff",x,y,z);
d) printf("%f %lf %llf",x,y,z);

Answer : A

Question. Which of the following is not a valid declaration in C?
1. short int x;
2. signed short x;
3. short x;
4. unsigned short x;
a) 3 and 4
b) 2
c) 1
d) All are valid

Answer : D

Question. In a C program snippet, followings are used for definition of Integer variables?
signed s;
unsigned u;
long l;
long long ll;
Pick the best statement for these.
a) All of the above variable definitions are incorrect because basic data type int is missing.
b) All of the above variable definitions are correct because int is implicitly assumed in all of these.
c) Only “long l;” and “long long ll;” are valid definitions of variables.
d) Only “unsigned u;” is valid definition of variable.

Answer : B

Question. Assume that the size of char is 1 byte and negatives are stored in 2\'s complement form
#include<stdio.h>
int main()
{
char c = 125;
c = c+10;
printf(\"%d\", c);
return 0;
}
a) 135
b) +INF
c) -121
d) -8

Answer : C

Question. Suppose a C program has floating constant 1.414, what\'s the best way to convert this as "float" data type?
a) (float)1.414
b) float(1.414)
c) 1.414f or 1.414F
d) 1.414 itself of "float" data type i.e. nothing else required.

Answer : C

Question. Predict the output
#include <stdio.h>
int main()
{
float c = 5.0;
printf (\"Temperature in Fahrenheit is %.2f\", (9/5)*c + 32);
return 0;
}
a) Temperature in Fahrenheit is 41.00
b) Temperature in Fahrenheit is 37.00
c) Temperature in Fahrenheit is 0.00
d) Compiler Error

Answer : B

Question. #include <stdio.h>
int main()
{
if (sizeof(int) > -1)
printf(\"Yes\");
else
printf(\"No\");
return 0;
}
a) Yes
b) No
c) Compiler Error
d) Runtime Error

Answer : B

Question. “typedef” in C basically works as an alias. Which of the following is correct for “typedef”?
a) typedef can be used to alias compound data types such as struct and union.
b) typedef can be used to alias both compound data types and pointer to these compound types.
c) typedef can be used to alias a function pointer.
d) typedef can be used to alias an array.
e) All of the above.

Answer : D

Question. Output?
int main()
{
void *vptr, v;
v = 0;
vptr = &v;
printf(\"%v\", *vptr);
getchar();
return 0;
}
a) 0
b) Compiler Error
c) Garbage Value

Answer : B

Question. Suppose n and p are unsigned int variables in a C program. We wish to set p to nC3. If n is large, which of the following statements is most likely to set p correctly?
a) p = n * (n-1) * (n-2) / 6;
b) p = n * (n-1) / 2 * (n-2) / 3;
c) p = n * (n-1) / 3 * (n-2) / 2;
d) p = n * (n-1) * (n-2) / 6.0;

Answer : B

MCQ Questions CUET Java Data Types

Question. class Main {
public static void main(String args[]) {
int t;
System.out.println(t);
}
}

a) 0
b) garbage value
c) a) compiler error
d) runtime error

Answer : C

Question. Predict the output of the following program. class Test
{
public static void main(String[] args)
{
Double object = new Double(\"2.4\");
int a = object.intValue();

byte b = object.byteValue();
float d = object.floatValue();
double c = object.doubleValue();
System.out.println(a + b + c + d );
}
}

a) 8
b) 8.8
c) 8.800000095367432

Answer : D

Question. Predict the output of following Java program.
class Test {
public static void main(String[] args) {
for(int i = 0; 0; i++)
{
System.out.println(\"Hello\");
break;
}
}
}

a) Hello
b) Empty Output
c) Compiler error
d) Runtime error\

Answer : C

Question. Which of the following statements is/are TRUE regarding JAVA ? (a) Constants that cannot be changed are declared using the ‘static’ keyword. (b) A class can only inherit one class but can implement multiple interfaces.
a) Only (a) is TRUE.
b) Only (b) is TRUE.
c) Both (a) and (b) are TRUE.
d) Neither (a) nor (b) are TRUE.

Answer : B

MCQ Questions CUET Python Data Type

Question. Which of these is not a core data type?
a) Lists
b) Dictionary
c) Tuples
d) Class

Answer : D

Question. Which of the following function convert a string to a float in python?
a) int(x [,base])
b) long(x [,base] )
c) float(x)
d) str(x)

Answer : C

Question. Question 6:Find the output of the following program:
a = {i: i * i for i in range(6)}
print (a)
a) Dictionary comprehension doesn’t exist
b) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6:36}
c) {0: 0, 1: 1, 4: 4, 9: 9, 16: 16, 25: 25}
d) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

Answer : D

Question. What data type is the object below ? L = [1, 23, ‘hello’, 1]
a) List
b) Dictionary
c) Tuple
d) Array

Answer : A

Question. Find the output of the following program:
D = dict()
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
a) {0: 1, 7: 0, 1: 1, 8: 0}
b) {1: 1, 7: 2, 0: 1, 8: 1}
c) {0: 0, 7: 0, 1: 1, 8: 1}
d) KeyError

Answer : C

Question. Which of the following statement(s) is TRUE?
A hash function takes a message of arbitrary length and generates a fixed length code.
A hash function takes a message of fixed length and generates a code of variable length.
A hash function may give the same hash value for distinct messages.
a) I only
b) II and III only
c) I and III only
d) II only

Answer : C

Question. Find the output of the following program:
nameList = [\'Harsh\', \'Pratik\', \'Bob\', \'Dhruv\']
pos = nameList.index(\"GeeksforGeeks\")
print (pos * 3)
a) GeeksforGeeks GeeksforGeeks GeeksforGeeks
b) Harsh
c) Harsh Harsh Harsh
d) ValueError: \'GeeksforGeeks\' is not in list

Answer : D

Chapter 06 Understanding Data Objective Questions & Solutions for CUET Computer Science

CUET Computer Science Chapter 06 Understanding Data Objective Test Questions

Test your conceptual understanding of Chapter 06 Understanding Data with these targeted multiple-choice questions. Designed in alignment with the latest CUET curriculum for CUET Computer Science, these problem sets build accuracy and prepare students for objective exams.

NCERT-Aligned Objective Questions and Solutions

Cross-reference your completed choices with comprehensive NCERT solutions for CUET Computer Science to ensure absolute clarity across all sub-topics in this chapter.

Next Steps in Your Exam Preparation

Follow up your worksheet practice by attempting the interactive online Computer Science MCQ test for this chapter to evaluate your execution speed. All platform resources are free to access.

FAQs

Where can I access latest CUET Computer Science MCQs Chapter 6 Understanding Data?

You can get most exhaustive CUET Computer Science MCQs Chapter 6 Understanding Data for free on StudiesToday.com. These MCQs for CUET Computer Science are updated for the 2026-27 academic session as per CUET examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the Computer Science CUET material?

Yes, our CUET Computer Science MCQs Chapter 6 Understanding Data include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the CUET paper is now competency-based.

How do practicing Computer Science MCQs help in scoring full marks in CUET exams?

By solving our CUET Computer Science MCQs Chapter 6 Understanding Data, CUET students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the Computer Science.

Do you provide answers and explanations for CUET Computer Science MCQs Chapter 6 Understanding Data?

Yes, Computer Science MCQs for CUET have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused CUET exams.

Can I practice these Computer Science CUET MCQs online?

Yes, you can also access online interactive tests for CUET Computer Science MCQs Chapter 6 Understanding Data on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.